B2B Integration 10.4 | Administering and Monitoring B2B Transactions | 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.

Copyright © 2016- 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release