Software AG Products 10.7 | Integrating On-Premises and Cloud Applications | Integration Server Built-In Services | SOAP Folder | Summary of Elements in this Folder | pub.soap.utils:getBody
 
pub.soap.utils:getBody
WmPublic. Retrieves the body from a SOAP message as a single node object.
Input Parameters
soapData
Object SOAP object containing the message whose Body node you want to retrieve.
Output Parameters
body
com.wm.lang.xml.Node The Body node from the SOAP message (that is, <SOAP-ENV:Body> to </SOAP-ENV:Body>).
Usage Notes
This service returns the entire Body element in body. To extract data from the Body element, query body with the pub.xml:queryXMLNode service.
If you want to extract the body of the message as an array of nodes, use the pub.soap.utils:getBodyEntries service.
See Also
pub.soap.utils:getBodyEntries
pub.soap.utils:addBodyEntry
Examples
See the following in the WmSamples packages in the certified samples area of the Knowledge Center on the Empower Product Support website at https://empower.softwareag.com:
sample.soap:buildMsg_sendHTTP
sample.soap:customProc_msgQueue
sample.soap:targetSvc_defaultProc