How to put multiple complete XML messages into 1 HTTP post?

Home Page Forums BizTalk 2004 – BizTalk 2010 How to put multiple complete XML messages into 1 HTTP post?

Viewing 1 reply thread
  • Author
    Posts
    • #20871

       Hello All,

      I’m currently developing an interface to UPS worldship. Any message send to them must be immediately preceded (‘concatenated’ they say) by an access request. So,using the HTTP adapter I need to POST something like this:

      <?xml version=”1.0″ encoding=”UTF-8″?>

      <AccessRequest xml:lang=”en-US”>
          
            …. stuff…..
      </AccessRequest>

      <?xml version=”1.0″ encoding=”UTF-8″?>

      <ShipmentRequest>
         
        <Request>

           ……stuff….
        </Request>
         
      <ShipmentRequest>

      How can I get this ‘concatenation’ done? I’ve tried multipart messages but that won’t put out this structure. Neither can I

      specify an XSD for it.

       

      Any help is greatly appreciated!

      Rob.

       

       

    • #20874

       My first thought was a custom Http adapter, that could append all parts of a multipart message to the output.

      Another idea is to use a flat file schema:

      Root (delimited, infix, hexidecimal, 0x0D 0x0A)
           AccessRequestField
           ShipmentRequestField

      -make the two fields distinguished fields

      In an orchestration message assignment:

      xmlDoc.Load(“<Root><AccessRequestField /><ShipmentRequestField /></Root>”);
      FlatFile = xmlDoc;

      xmlDoc = AccessRequestMessage;
      FlatFile. AccessRequestField = xmlDoc.OuterXml;

      xmlDoc = ShipmentRequestMessage
      FlatFile. ShipmentRequestField = xmlDoc.OuterXml;

      Use a custom send pipeline with the flat file assembler

       

       

      • #20875

         Thanks a lot Greg,

        I’ll try the flat file assemble approach.

        When I get it going, I’ll post it here [:)]

        Greetings,

        Rob.

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.