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=“[URL=“http://schemas.xmlsoap.org/soap/envelope/”]http://schemas.xmlsoap.org/soap/envelope/[/URL]” xmlns:SOAP-ENC=“[URL=“http://schemas.xmlsoap.org/soap/encoding/”]http://schemas.xmlsoap.org/soap/encoding/[/URL]” xmlns:xsd=“[URL=“XML Schema”]http://www.w3.org/2001/XMLSchema[/URL]” xmlns:xsi=“[URL=“http://www.w3.org/2001/XMLSchema-instance”]http://www.w3.org/2001/XMLSchema-instance[/URL]”>
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="[B]http://schemas.xmlsoap.org/soap/envelope/[/color][/b][COLOR=#0000ff]" xmlns:s1="[B]http://microsoft.com/wsdl/types/[/color][/b][COLOR=#0000ff]" xmlns:http="[B]http://schemas.xmlsoap.org/wsdl/http/[/color][/b][COLOR=#0000ff]" xmlns:soap="[B]http://schemas.xmlsoap.org/wsdl/soap/[/color][/b][COLOR=#0000ff]" xmlns:s="[B]http://www.w3.org/2001/XMLSchema[/color][/b][COLOR=#0000ff]" xmlns:s0="[B]http://enviance.com/2005/DataService[/color][/b][COLOR=#0000ff]" xmlns:s2="[B]http://enviance.com/Security[/color][/b][COLOR=#0000ff]" xmlns:envb="[B]http://enviance.com/2005/Schemas/Batches[/color][/b][COLOR=#0000ff]" xmlns:soapenc="[B]http://schemas.xmlsoap.org/soap/encoding/[/color][/b][COLOR=#0000ff]" xmlns:tm="[B]http://microsoft.com/wsdl/mime/textMatching/[/color][/b][COLOR=#0000ff]" xmlns:mime="[B]http://schemas.xmlsoap.org/wsdl/mime/[/color][/b][COLOR=#0000ff]" xmlns:xsi="[B]http://www.w3.org/2001/XMLSchema-instance[/color][/b][COLOR=#0000ff]" xmlns:xsd="[B]http://www.w3.org/2001/XMLSchema[/color][/b][COLOR=#0000ff]">
- <SOAP-ENV:Body>
- <s0:SubmitNumericDataBatchByTag xmlns:s0="[B]http://enviance.com/2005/DataService[/color][/b][COLOR=#0000ff]">
<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