Package org.apache.axiom.soap

Examples of org.apache.axiom.soap.SOAPVersion


  public static void setXMLPayload(SOAPEnvelope envelope, OMElement element) {
    SOAPBody body = envelope.getBody();
    if (body == null) {

      SOAPVersion version = envelope.getVersion();
      if (version.getEnvelopeURI().equals(
          SOAP11Version.SOAP_ENVELOPE_NAMESPACE_URI)) {
        body = OMAbstractFactory.getSOAP11Factory().createSOAPBody();
      } else {
        body = OMAbstractFactory.getSOAP12Factory().createSOAPBody();
      }
View Full Code Here


  public static void setXMLPayload(SOAPEnvelope envelope, OMElement element) {
    SOAPBody body = envelope.getBody();
    if (body == null) {

      SOAPVersion version = envelope.getVersion();
      if (version.getEnvelopeURI().equals(
          SOAP11Version.SOAP_ENVELOPE_NAMESPACE_URI)) {
        body = OMAbstractFactory.getSOAP11Factory().createSOAPBody();
      } else {
        body = OMAbstractFactory.getSOAP12Factory().createSOAPBody();
      }
View Full Code Here

                return false;
            }
        }

        String role = header.getRole();
        SOAPVersion version = header.getVersion();

        // 1. If role is ultimatedest, go by what the rolePlayer says
        if (role == null || role.equals("") ||
                (version instanceof SOAP12Version &&
                        role.equals(SOAP12Constants.SOAP_ROLE_ULTIMATE_RECEIVER))) {
            return (rolePlayer == null || rolePlayer.isUltimateDestination());
        }

        // 2. If role is next, always return true
        if (role.equals(version.getNextRoleURI())) return true;

        // 3. If role is none, always return false
        if (version instanceof SOAP12Version &&
                role.equals(SOAP12Constants.SOAP_ROLE_NONE)) {
            return false;
View Full Code Here

  public static void setXMLPayload(SOAPEnvelope envelope, OMElement element) {
    SOAPBody body = envelope.getBody();
    if (body == null) {

      SOAPVersion version = envelope.getVersion();
      if (version.getEnvelopeURI().equals(
          SOAP11Version.SOAP_ENVELOPE_NAMESPACE_URI)) {
        body = OMAbstractFactory.getSOAP11Factory().createSOAPBody();
      } else {
        body = OMAbstractFactory.getSOAP12Factory().createSOAPBody();
      }
View Full Code Here

        this.rolePlayer = rolePlayer;
    }

    public boolean checkHeader(SOAPHeaderBlock header) {
        String role = header.getRole();
        SOAPVersion version = header.getVersion();

        // 1. If role is ultimatedest, go by what the rolePlayer says
        if (role == null || role.equals("") ||
                (version instanceof SOAP12Version &&
                        role.equals(SOAP12Constants.SOAP_ROLE_ULTIMATE_RECEIVER))) {
            return (rolePlayer == null || rolePlayer.isUltimateDestination());
        }

        // 2. If role is next, always return true
        if (role.equals(version.getNextRoleURI())) return true;

        // 3. If role is none, always return false
        if (version instanceof SOAP12Version &&
                role.equals(SOAP12Constants.SOAP_ROLE_NONE)) {
            return false;
View Full Code Here

   
    Message message = new Message();
    Options options = msgCtx.getOptions();     
      String serviceName = XMPPUtils.getServiceName(targetAddress);   
     
      SOAPVersion version = msgCtx.getEnvelope().getVersion();
      if(version instanceof SOAP12Version){
        message.setProperty(XMPPConstants.CONTENT_TYPE, HTTPConstants.MEDIA_TYPE_APPLICATION_SOAP_XML+ "; action="+ msgCtx.getSoapAction());
      }else{
        message.setProperty(XMPPConstants.CONTENT_TYPE, HTTPConstants.MEDIA_TYPE_TEXT_XML);
      }
View Full Code Here

                return false;
            }
        }

        String role = header.getRole();
        SOAPVersion version = header.getVersion();

        // 1. If role is ultimatedest, go by what the rolePlayer says
        if (role == null || role.equals("") ||
                (version instanceof SOAP12Version &&
                        role.equals(SOAP12Constants.SOAP_ROLE_ULTIMATE_RECEIVER))) {
            return (rolePlayer == null || rolePlayer.isUltimateDestination());
        }

        // 2. If role is next, always return true
        if (role.equals(version.getNextRoleURI())) return true;

        // 3. If role is none, always return false
        if (version instanceof SOAP12Version &&
                role.equals(SOAP12Constants.SOAP_ROLE_NONE)) {
            return false;
View Full Code Here

        this.rolePlayer = rolePlayer;
    }

    public boolean checkHeader(SOAPHeaderBlock header) {
        String role = header.getRole();
        SOAPVersion version = header.getVersion();

        // 1. If role is ultimatedest, go by what the rolePlayer says
        if (role == null || role.equals("") ||
                (version instanceof SOAP12Version &&
                        role.equals(SOAP12Constants.SOAP_ROLE_ULTIMATE_RECEIVER))) {
            return (rolePlayer == null || rolePlayer.isUltimateDestination());
        }

        // 2. If role is next, always return true
        if (role.equals(version.getNextRoleURI())) return true;

        // 3. If role is none, always return false
        if (version instanceof SOAP12Version &&
                role.equals(SOAP12Constants.SOAP_ROLE_NONE)) {
            return false;
View Full Code Here

  public static void setXMLPayload(SOAPEnvelope envelope, OMElement element) {
    SOAPBody body = envelope.getBody();
    if (body == null) {

      SOAPVersion version = envelope.getVersion();
      if (version.getEnvelopeURI().equals(
          SOAP11Version.SOAP_ENVELOPE_NAMESPACE_URI)) {
        body = OMAbstractFactory.getSOAP11Factory().createSOAPBody();
      } else {
        body = OMAbstractFactory.getSOAP12Factory().createSOAPBody();
      }
View Full Code Here

        if ((namespace != null) && !namespace.equals(header.getNamespace().getNamespaceURI())) {
            return false;
        }

        String role = header.getRole();
        SOAPVersion version = header.getVersion();

        // 1. If role is ultimatedest, go by what the rolePlayer says
        if (role == null || role.equals("") ||
                (version instanceof SOAP12Version &&
                        role.equals(SOAP12Constants.SOAP_ROLE_ULTIMATE_RECEIVER))) {
            return (rolePlayer == null || rolePlayer.isUltimateDestination());
        }

        // 2. If role is next, always return true
        if (role.equals(version.getNextRoleURI())) return true;

        // 3. If role is none, always return false
        if (version instanceof SOAP12Version &&
                role.equals(SOAP12Constants.SOAP_ROLE_NONE)) {
            return false;
View Full Code Here

TOP

Related Classes of org.apache.axiom.soap.SOAPVersion

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.