pub.soap.utils:stringToSoapData
WmPublic. Converts a String containing a SOAP message to a SOAP object.
(A SOAP message must be represented as a SOAP object to be used with the data-retrieval services such as
pub.soap.utils:getHeader and
pub.soap.utils:getBody).
Note:
This service is a convenient way to produce a SOAP object during development and testing. It is not meant to be used for production purposes because
it does not ensure that a valid SOAP message is produced. Additionally, producing a SOAP object from a String is a very time-consuming process. For production purposes, we recommend that you create SOAP objects with the such as
pub.soap.utils:getHeader and
pub.soap.utils:getBody).
Input Parameters
string | String SOAP message that is to be converted to a SOAP object. |
soapProtocol | String Optional. Indicates the SOAP protocol that the resulting SOAP object will work with. The default value is read from the watt.server.SOAP.defaultProtocol property. Set to: SOAP 1.1 Protocol to indicate the SOAP object works with SOAP 1.1. SOAP 1.2 Protocol to indicate the SOAP object works with SOAP 1.2. |
addEmptyHeader | String Optional. Specifies whether to create an empty header entry along with the SOAP envelope and body entries in the SOAP message. Set to: True to create an empty header entry in the SOAP message. False to create only the SOAP envelope and body entries. This setting overrides the global watt.server.SOAP.addEmptyHeader setting of Integration Server. Important: There is no default value. If you do not specify a value for the addEmptyHeader parameter, the service uses the value specified in the watt.server.SOAP.addEmptyHeader server configuration parameter. For more information about watt.server.SOAP.addEmptyHeader, see webMethods Integration Server Administrator’s Guide. |
Output Parameters
soapData | Object SOAP object representation of the SOAP message in string. |
See Also