Hi
I need to manipulate a soap call before it's sent off to the soap server. Currently my soap call is constructed as follows:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.xxxxxxx.co.za/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns1:SubmitStringLead>
<xmlLead xsi:type="xsd:string">
<strXml>
<Lead>
<General>
<dealer>419</dealer>
<source ref="1334923054">randomstring</source>
<enquiry>1</enquiry>
<subtype>4</subtype>
<comment />
</General>
<Prospect>
<title />
<name>test</name>
<surname />
<email>test@test.com</email>
<home />
<work />
<mobile>0123456789</mobile>
<idnumber />
<comment />
<area />
<national>true</national>
<license>true</license>
</Prospect>
<Item>
<id>1234567</id>
<purchaseDate>Now</purchaseDate>
</Item>
</Lead>
</strXml>
</xmlLead>
</ns1:SubmitStringLead>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
I need it to look exactly like the following...and I can't stress "exactly" enough. The soap server is on a microsoft platform and is fussy as hell.
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<SubmitStringLead xmlns="http://www.xxxxxxx.co.za/">
<strXml>
<Lead>
<General>
<dealer>419</dealer>
<source ref="1334923054">randomstring</source>
<enquiry>1</enquiry>
<subtype>4</subtype>
<comment />
</General>
<Prospect>
<title />
<name>test</name>
<surname />
<email>test@test.com</email>
<home />
<work />
<mobile>0123456789</mobile>
<idnumber />
<comment />
<area />
<national>true</national>
<license>true</license>
</Prospect>
<Item>
<id>1234567</id>
<purchaseDate>Now</purchaseDate>
</Item>
</Lead>
</strXml>
</SubmitStringLead>
</soap:Body>
</soap:Envelope>
Anyone help will be enormously appreciated.