Default output of createSoapData

The default object created from pub.soap.utils.createSoapData is as follows:

<?xml version="1.0" encoding="UTF-8"?>

<SOAP-ENV:Envelope xmlns:SOAP-ENV=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:SOAP-ENC=“http://schemas.xmlsoap.org/soap/encoding/” xmlns:xsd=“http://www.w3.org/2001/XMLSchema” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”>
SOAP-ENV:Body
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

I need to have the soap object look more like the following. Is it possible to add additional namespace?

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
- <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:s1="http://microsoft.com/wsdl/types/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://enviance.com/2005/DataService" xmlns:s2="http://enviance.com/Security" xmlns:envb="http://enviance.com/2005/Schemas/Batches" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <SOAP-ENV:Body>
- <s0:SubmitNumericDataBatchByTag xmlns:s0="http://enviance.com/2005/DataService">
<s0:batch />

</s0:SubmitNumericDataBatchByTag>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>

Roy

Create an xml string containing the envelope you want to use, the pass it into the pub.soap.utils:stringToSoapData built-in service.

However, if you are not going to use those namespaces in soap header or body elements, they are unecessary and do not need to be declared on the envelope element (no matter what your favorite Microsoft developers may say :wink:)

Mark