if I set the ContentType before getting the request stream,
the file I get from SavePipelineToFile is:
<?xml version="1.0" encoding="UTF-8"?>
<IDataXMLCoder version="1.0">
<record javaclass="com.wm.util.Values">
<value name="fileName">addHTTPPost</value>
</record>
</IDataXMLCoder>
if I set the ContentType after getting the request stream,
the file I get from SavePipelineToFile is:
<?xml version="1.0" encoding="UTF-8"?>
<IDataXMLCoder version="1.0">
<record javaclass="com.wm.util.Values">
<value name="fileName">addHTTPPost</value>
<value name="<?xml version">"1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="[URL="http://schemas.xmlsoap.org/soap/envelope/"]http://schemas.xmlsoap.org/soap/envelope/[/URL]" xmlns:xsi="[URL="http://www.w3.org/2001/XMLSchema-instance"]http://www.w3.org/2001/XMLSchema-instance[/URL]" xmlns:xsd="<A href="http://www.w3.org/2001/XMLSchema"><soap:Body><ServiceAdd">http://www.w3.org/2001/XMLSchema"><soap:Body><ServiceAdd xmlns="fe:FeWebServiceExample.SOAP_MSG.flow"><num1 xmlns="">100.6</num1><num2 xmlns="">200.5</num2></ServiceAdd></soap:Body></soap:Envelope></value>
<array name="<?xml versionList" type="value" depth="1">
<value>"1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="[URL="http://schemas.xmlsoap.org/soap/envelope/"]http://schemas.xmlsoap.org/soap/envelope/[/URL]" xmlns:xsi="[URL="http://www.w3.org/2001/XMLSchema-instance"]http://www.w3.org/2001/XMLSchema-instance[/URL]" xmlns:xsd="<A href="http://www.w3.org/2001/XMLSchema"><soap:Body><ServiceAdd">http://www.w3.org/2001/XMLSchema"><soap:Body><ServiceAdd xmlns="fe:FeWebServiceExample.SOAP_MSG.flow"><num1 xmlns="">100.6</num1><num2 xmlns="">200.5</num2></ServiceAdd></soap:Body></soap:Envelope></value>
</array>
</record>
</IDataXMLCoder>
that is why I put it after streaming.
Shuren
#Flow-and-Java-services#webMethods#Integration-Server-and-ESB