quote:
...as a rule of thumb is this information required by the
webservice (<soap:Body>, <tns:...>)
Yes. XML entity names with a colon in them are within a
namespace. In this case, this line:
<soap:Envelope xmlns:soap="
http://www.w3.org/2003/05/soap-envelope"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="
http://www.w3.org/2001/XMLSchema"
xmlns:tns=
http://ws.com/webservice>
sets up 4 namespaces. soap, xsi, xsd, and tns. The soap
namespace is common to any soap-based web service. The tns
namespace is specific to this webservice, or maybe generic across
all webservices that this specific company has.
Be sure you include _everything_ that is in this snippet. You
can't exclude any of it (except, of course, the XML declaration).
<cfxml variable="mySoapRequest">
<soap:Envelope xmlns:soap="
http://www.w3.org/2003/05/soap-envelope"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="
http://www.w3.org/2001/XMLSchema"
xmlns:tns="
http://ws.com/webservice">
<soap:Body>
<tns:CreateAccountV1>
<tns:AccountCoreDetails>
<tns:OrganisationCode>CODE
HERE</tns:OrganisationCode>
<tns:Surname />
</tns:AccountCoreDetails>
</tns:CreateAccountV1>
</soap:Body>
</soap:Envelope>
</cfxml>