I'm using %SOAP.WebRequest to send SOAP requests:
- Populate %SOAP.WebRequest object (by setting Request and HeadersOut properties)
- Call SendSOAPBody method to send request
Currently the XML I send looks like this:
<?xml version="1.0" encoding="UTF-8" ?> <SOAP-ENV:Envelope xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'> <SOAP-ENV:Header> <SomeCustomHeader/> </SOAP-ENV:Header> <SOAP-ENV:Body><SomeCustomBody/></SOAP-ENV:Body> </SOAP-ENV:Envelope>
However, I want XML to be generated differently:
- No new lines
- No whitespaces between <SomeCustomHeader/> and </SOAP-ENV:Header>
How can I tweak XML generation to achieve that?