Problem with envelopes when upgrading from Biztalk 2002 to Biztalk 2006 R2

Home Page Forums BizTalk 2004 – BizTalk 2010 Problem with envelopes when upgrading from Biztalk 2002 to Biztalk 2006 R2

Viewing 1 reply thread
  • Author
    Posts
    • #20394

      Hi,

      one of our partners whom we are testing the new Biztalk 2006 R2 integrations, is unavailable to receive correctly our messages because of the envelope’s diferences between Biztalk 2002 and Biztalk 2006 R2.

      This is the Biztalk 2002 envelope version:

       

      and this is the new version of BT2006 R2:

        <?xml version=”1.0″ encoding=”utf-8″ ?>
        <SOAP-ENV:Envelope xmlns:SOAP-ENV=”http://schemas.xmlsoap.org/soap/envelope/&#8221; xmlns:xsi=”http://www.w3.org/1999/XMLSchema-instance&#8221; xmlns:biz=”http://schemas.biztalk.org/btf-2-0/address/types”&gt;
        <SOAP-ENV:Header>
        <endpoints xmlns=”http://schemas.biztalk.org/btf-2-0/endpoints&#8221; SOAP-ENV:mustUnderstand=”1″>
        <to>
        <address xsi:type=”biz:OrganizationName”>ORG_SONAECOM</address>
        </to>
        <from>
        <address xsi:type=”biz:OrganizationName”>ORG_MK</address>
        </from>
        </endpoints>
        <properties xmlns=”http://schemas.biztalk.org/btf-2-0/properties&#8221; SOAP-ENV:mustUnderstand=”1″>
        <identity>uuid:538c644f-0ad7-4af2-a565-9bb2ef6d2153</identity>
        <sentAt>2008-04-16T17:17:54+00:00</sentAt>
        <expiresAt>2008-04-16T18:47:54+00:00</expiresAt>
        <topic>root:PORDCR101</topic>
        </properties>
        <services xmlns=”http://schemas.biztalk.org/btf-2-0/services&#8221; SOAP-ENV:mustUnderstand=”1″>
        <deliveryReceiptRequest>
        <sendTo>
        <address xsi:type=”biz:httpURL”>http://…</address&gt;
        </sendTo>
        <sendBy>2008-04-16T18:57:54+00:00</sendBy>
        </deliveryReceiptRequest>
        </services>
        </SOAP-ENV:Header>
        <SOAP-ENV:Body>

       

      There are small diferences but enough to make the integration unavailable…  Example: in BT 2002 we have the segment “eps:endpoints” and in BT 2006 R2 it exists as “endpoints”.

       

      Is there a way to select the “BT 2002 envelope mode” in BT 2006 R2? Or the only way is to select a component to work the envelope with XSLT?

       

      Thanks in advance,

      Gustavo

    • #20396

      Which adapter are you using?  Are you sure it is the SOAP envelope and not the body of the message?  SOAP envelopes from BizTalk are valid XML, so it shouldn’t matter whether the enelope contains namespace prefixes such as “eps”.  There is no way to set BTS 2002 envelope mode, and modifying the evelope is not an easy task.  Your best bet is to use the WCF-BasicHttp adapter (http://msdn.microsoft.com/en-us/library/bb246019.aspx).  If simply using the adapter doesn’t fix the issue, you have some ability to mofidy the envelope by writing a WCF message inspector (http://weblogs.asp.net/paolopia/archive/2008/02/25/handling-custom-soap-headers-via-wcf-behaviors.aspx).  You would need to use the WCF-Custom adapter to hook in a message inspector via a custom behavior.

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