Skip to main content

Posts Tagged ‘escaped XML’

Message Broker’s ASBITSTREAM function

I recently had a unique integration requirement where an external service provider was expecting XML within the SOAP request. One automatically thinks CDATA but in this case the endpoint required the XML to be escaped within a SOAP request. <SOAP-ENV:Envelope xmlns:SOAP-ENV=”http://schemas.xmlsoap.org/soap/envelope/” xmlns:ns1=”http://exacttarget.com/wsdl/partnerAPI”> <SOAP-ENV:Body> <ns1:CreateRequest> <ns1:Name>XML_Data</ns1:Name> <ns1:Value>&lt;order&gt; &lt;ns1:Attributes&gt; &lt;ns1:Name&gt;Transaction_ID&lt;/ns1:Name&gt;&lt;ns1:Value&gt;Transaction_ID goes here&lt;/ns1:Value&gt; &lt;/ns1:Attributes&gt; &lt;/order&gt; </ns1:Value> </SOAP-ENV:Body> </SOAP-ENV:Envelope> […]