How do you insert additional namespaces into the SOAP 'envelope' element? RRS feed

  • Question

  • I'm calling a web service via a manually coded 'Send' activity (i.e. not using the activity/workflow designer) and need to supply headers to the outgoing message. 

    I'd like my SOAP message to be like this:

    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">

    But instead I have this:

    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
            <Action xmlns="http://www.w3.org/2005/08/addressing">Request</Action>

    Is it possible to somehow inject additional namespaces into the Envelope element so that I can then just use the namespace prefixes with my header names (instead of having the literal namespace attributes)?

    Wednesday, March 23, 2011 5:22 PM