org.apache.synapse.core.axis2
Class SOAPUtils
java.lang.Object
org.apache.synapse.core.axis2.SOAPUtils
public class SOAPUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SOAPUtils
public SOAPUtils()
convertSoapVersion
public static void convertSoapVersion(MessageContext axisOutMsgCtx,
String soapVersionURI)
throws AxisFault
- Converts the SOAP version of the message context. Creates a new envelope of the given SOAP
version, copy headers and bodies from the old envelope and sets the new envelope to the same
message context.
- Parameters:
axisOutMsgCtx
- messageContext where version conversion is donesoapVersionURI
- either org.apache.axis2.namespace.Constants.URI_SOAP12_ENV or
org.apache.axis2.namespace.Constants.URI_SOAP11_ENV
- Throws:
AxisFault
- in case of an error in conversion
convertSOAP11toSOAP12
public static void convertSOAP11toSOAP12(MessageContext axisOutMsgCtx)
throws AxisFault
- Converts the version of the the message context to 1.2.
Message Changes:
- Convert envelope, header elements
- For each header block convert attribute actor to role
- For each header block convert mustUnderstand value type
- For each header block remove 1.1 namespaced other attributes
Fault Changes:
- Convert fault element
- faultcode to Fault/Code
- faultstring to First Fault/Reason/Text with lang=en
- Parameters:
axisOutMsgCtx
- message context to be converted
- Throws:
AxisFault
- incase conversion process fails
convertSOAP12toSOAP11
public static void convertSOAP12toSOAP11(MessageContext axisOutMsgCtx)
throws AxisFault
- Converts the version of the the message context to 1.1.
Message Changes:
- Convert envelope, header elements
- For each header block convert attribute role to actor
- For each header block convert mustUnderstand value type
- For each header block remove 1.2 namespaced other attributes
Fault Changes:
- Convert fault element
- Fault/Code to faultcode
- First Fault/Reason/Text to faultstring
- Parameters:
axisOutMsgCtx
- message context to be converted
- Throws:
AxisFault
- in case of an error in conversion
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.