Designer 10.7 | webMethods Service Development Help | Submitting and Receiving XML Documents | Submitting and Receiving XML in a String Variable | Considerations When Coding the Target Service to Receive the XML Document that is Passed in a String Variable
 
Considerations When Coding the Target Service to Receive the XML Document that is Passed in a String Variable
When a client submits an XML document to a target service in an arbitrarily named String variable, the target service must take action to parse the XML so that the service can then subsequently manipulate the data in the XML document.
Code the target service to invoke the pub.xml:xmlStringToXMLNode service, passing the xmlStringToXMLNode service the String variable that contains the XML document. The xmlStringToXMLNode service produces a node that the target service can subsequently query or convert to an IData object.
For example, continuing with the previous example, the target service, purch:postOrder, would pass the orders String, which contains the XML document, to pub.xml:xmlStringToXMLNode.
After the XML document is represented as a node, the target service can invoke:
*pub.xml:queryXMLNode to query the node
*pub.xml:xmlNodeToDocument to convert the node to an IData object
For more information about the pub.xml:xmlStringToXMLNode. pub.xml:queryXMLNode, and pub.xml:xmlNodeToDocument services, see webMethods Integration Server Built-In Services Reference.
Related Topics
Submitting and Receiving XML Documents
Submitting and Receiving XML in $xmldata
Submitting and Receiving XML via $xmldata without Parsing
Submitting and Receiving XML via HTTP
Submitting and Receiving XML via FTP
Submitting and Receiving XML via E-mail