Cloud Application Integration (On-Premises) : Service Development : Submitting and Receiving XML Documents : Submitting and Receiving XML via HTTP : Using pub.client:http to Submit an XML Document via HTTP
Using pub.client:http to Submit an XML Document via HTTP
If the client is a service running in an Integration Server, the client can invoke the pub.client:http service to submit the XML document via HTTP.
The following table describes how to set the input variables for the pub.client:http service to POST an XML document to a target service. For a full description of the pub.client:http service, see webMethods Integration Server Built-In Services Reference
pub.client:http input variable
Description
url
Specify the URL of the target service that is to receive the XML document.
In the URL, include the xmlFormat argument if you want to override the behavior specified by the Default xmlFormat property for the target service. For more information about the xmlFormat values, see About the xmlFormat Value.
*If you want Integration Server to take action on the XML document based on the specified Default xmlFormat property value for the target service, use the following format for the URL:
http://hostname:port/invoke/folder/serviceName
For example, the following URL invokes the purch:postOrder service on the server at rubicon:5555.
http://rubicon:5555/invoke/purch/postOrder
*If you want to override the Default xmlFormat property value specified for the target service, use the following format for the URL:
http://hostname:port/invoke/folder/serviceName?xmlFormat=format
Where format can be enhanced, node, stream, or bytes. For more information about the xmlFormat value and how it impacts processing of the XML document, see About the xmlFormat Value.
Note:  
The client request should specify the xmlFormat argument only when it is recommended in the documentation for the target service. Furthermore, a client should specify the xmlFormat only when knowing how the service will respond.
method
Specify post or put.
headers
Specify information for the Content-Type field of the HTTP request header.
Key
Value
Content-Type
text/xml or application/xml
data
Specify the XML document to submit via HTTP. Use one of the following keys:
Key
Value
string
A string containing the XML document to submit.
bytes
A byte array containing the XML document to submit.
Creating a Client that Submits an XML Document via HTTP
About the xmlFormat Value
Copyright © 2015- 2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback