Steve,
An improvement in 6.1.3 was to allow for a block of text as the body of a POST in the Web Call action. Once you update to that version (or later) you’ll be able to simply drop your XML from below into that box and insert any variables where need be. Also note that for most XML/SOAP POST actions, you need to have certain headers. Normally this means setting the Content-Type to application/xml+soap and sometimes setting an additional soap specific header like SOAPMethod – your documentation should explain if this is needed. Regarding encoding, any variables that you place in elements in the XML (soap) document should be encoded CDATA (encoding=cdata). While this should be sound advice, some XML parsing implementations might not like it. Lastly, I’ve made small tweaks to the Web Call action in 6.1.5 (TeraScribe only) and 6.2, so as you update you may have to make some adjustments. One change is not backwards compatible and the server will behave slightly differently. Basically, I needed to refine the internals of this function as I tested against various scenarios. Robert From: Fogelson, Steve [mailto:[email protected]] Sent: Monday, March 05, 2012 8:50 PM To: [email protected] Subject: TeraScript-Talk: WebCall Action I am trying to use a WebCall Action for a SOAP message The SOAP message was supplied to me by IT for the server I am trying to access and is as follows: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.api.xxxxxx.com"> <soapenv:Header/> <soapenv:Body> <ws:exportInventory> <ws:serviceConfig> <ws:entry> <ws:key>access.key</ws:key> <ws:value>xxxxxxx</ws:value> </ws:entry> <ws:entry> <ws:key>season.code</ws:key> <ws:value>XXX</ws:value> </ws:entry> </ws:serviceConfig> </ws:exportInventory> </soapenv:Body> </soapenv:Envelope> I assume I place this xml in the POST ARGUMENTS tab as a “Post Argument”. The SOAP XML must be the “Value”. What do I insert for the “Name? Do I need to encode the SOAP XML with @URLENCODE? Do I need to insert anything under the HEADER tab? Maybe USER-Agent? Steve Fogelson Internet Commerce solutions _____ To unsubscribe from this list, please send an email to [email protected] with "unsubscribe terascript-talk" in the body. ---------------------------------------- To unsubscribe from this list, please send an email to [email protected] with "unsubscribe terascript-talk" in the body.
