<?xml version="1.0" encoding="UTF-8" ?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Header/> <SOAP-ENV:Body> <process xmlns="http://message.samples"> <part> <mcc> <transactionID>POS12345</transactionID> <details> <name>ABCD</name> <mobile>91xxxxxxx</mobile> <template>SMS Integration testing - Vikas</template> </details> </mcc> </part> </process> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
Comments
Epimatic Corp.
http://www.epimatic.com
Basically I am trying to send a SOAP message to SMS gateway. In this template, I need to send some calculated values. The template element will contain, 1 long string like, Total amount, PO No., Vendor etc.
I need to build the SOAP message and send it over Http link.
I am not able to produce the SOAP message in desired way.
Thanks & Regards,
Vikas
Epimatic Corp.
http://www.epimatic.com
Although it needs a bit more coding we normally prefer to build the xml with xmldom. You have the full control, especially when it comes to choice-elements, name spaces and such things.
Here's a very good example showing the basic usage.
http://www.mibuso.com/dlinfo.asp?FileID=539
Hope this helps.
Thomas
However for exporting simple XML data that representing things like customers, sales orders I find XML ports are great tools for getting objects built very quickly to get that data out of Navision.
Epimatic Corp.
http://www.epimatic.com