Package org.apache.axiom.soap

Examples of org.apache.axiom.soap.SOAPVersion


   
    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

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.