none
AS2 Synchronus Empty MDN RRS feed

  • Question

  • Hi Experts,

    Am using BizTalk server 2009. I want to receive an AS2 message from my partner and send synchronous MDN. I used two way receive port and configure it as http port. My receive url is /Contoso/BTSHTTPReceive.dll. But my MDN is EMPTY received by my partner. Please help?

    Kind Regards,

     

    Ram

    Thursday, January 19, 2012 4:23 AM

Answers

  • AS2 messages are structured similar to MIME messages.  If you use a utility like Fiddler to monitor the outgoing messages, you can inspect the message that was delivered to your partner.   I included a sample MDN message below for reference, the computed hash is bold and underlined.  Once you have determined the outgoing message is valid or not, it will be easier to isolate the issue.

    Additional information from edit:

    Although the important part of the MDN is the signed Received-Content-MIC (bold).  There is also text information that is included in an MDN.  I highlighted that part of the message in bold italic underline below for reference.

    The structure of an MDN message (unencrypted) is as follows:

    AS2-To: PartnerCompanyName
    Mime-Version: 1.0
    Message-ID: <80BE52B7-0915-423C-8A25-6C4B5F12F633>
    AS2-From: MyCompanyName
    AS2-Version: 1.1
    Content-Length: 3614
    Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg="sha1"; boundary="_E41BAC59-E11A-486B-AC11-0BCA378BFCCE_"
    Date: Wed, 14 Feb 2007 22:07:46 GMT
    Server: Microsoft-IIS/7.0

    --_E41BAC59-E11A-486B-AC11-0BCA378BFCCE_
    Content-Type: multipart/report; report-type=disposition-notification;
     boundary="_8F704D39-0A25-427B-83AA-FEE108DC4A81_"

    --_8F704D39-0A25-427B-83AA-FEE108DC4A81_
    Content-Type: text/plain
    Content-Transfer-Encoding: binary
    Content-ID: {017F345F-F741-4061-B7CB-4014C884DDB1}
    Content-Description: plain

    This is an MDN from MyCompanyName.
    --_8F704D39-0A25-427B-83AA-FEE108DC4A81_
    Content-Type: message/disposition-notification
    Content-Transfer-Encoding: 7bit
    Content-ID: {24DBD01D-9F37-42B0-AD59-53014B61357F}
    Content-Description: body

    Final-Recipient: rfc822; PartnerCompanyName
    Original-Message-ID: <9FFB5B68-94AC-4A15-8887-EF38157A96E4>
    Disposition: automatic-action/MDN-sent-automatically; processed
    Received-Content-MIC: uH5VDjcxreFk4xZzk35zDb1IBkw=, sha1

    --_8F704D39-0A25-427B-83AA-FEE108DC4A81_--

    --_E41BAC59-E11A-486B-AC11-0BCA378BFCCE_
    Content-type: application/pkcs7-signature; name="smime.p7s"
    Content-Transfer-Encoding: base64

    MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIF5jCCBeIw
    ggTKoAMCAQICCjp4CIcAAwAAAIwwDQYJKoZIhvcNAQEFBQAwezETMBEGCgmSJomT8ixkARkWA2Nv
    bTEZMBcGCgmSJomT8ixkARkWCW1pY3Jvc29mdDEUMBIGCgmSJomT8ixkARkWBGNvcnAxFzAVBgoJ
    kiaJk/IsZAEZFgdyZWRtb25kMRowGAYDVQQDExFNaWNyb3NvZnQgRGVtbyBDQTAeFw0wNjEwMjUx
    ODM4NDJaFw0xMTA3MjUyMTAzMjlaMIGHMQswCQYDVQQGEwJVUzELMAkGA1UECBMCV0ExEDAOBgNV
    BAcTB1JlZG1vbmQxEjAQBgNVBAoTCU1pY3Jvc29mdDEMMAoGA1UECxMDQjJCMRIwEAYDVQQDEwlN
    aWNyb3NvZnQxIzAhBgkqhkiG9w0BCQEWFG1vbmFoa0BtaWNyb3NvZnQuY29tMIGfMA0GCSqGSIb3
    DQEBAQUAA4GNADCBiQKBgQCke+R09K0IZ/elqjLmnh7nc7e+yP8L/3mQjVgBxVI1NLz9C55YxnnQ
    8JlCqDqar7/hpdrnvVS4X/Ewsrq4xQFdC6MNpff7TYpx2tiKaEZqIepthIPvh5nRx5asK307X9e8
    cF/s7EXYxomen6wm3KIsZomdqmT/XQjUfNBDemAL5wIDAQABo4IC3TCCAtkwDgYDVR0PAQH/BAQD
    AgTwMEQGCSqGSIb3DQEJDwQ3MDUwDgYIKoZIhvcNAwICAgCAMA4GCCqGSIb3DQMEAgIAgDAHBgUr
    DgMCBzAKBggqhkiG9w0DBzAdBgN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d9eKFenRAh1QBApECrcArYzjN8dEkU4N5qF5kFNA3Drgj9etHXePeEoGNhA/hNukepM
    nlZcVJqpSPuWTAN6i6eiZyLxnVCI5OZlZqymTovYi6M55BO8TC1ufu1/3NJboqL4ofHbvBMPn+AB
    sssq/xKdO+01N9cbDXLB9DZ8f/EOe0cxggEwMIIBLAIBATCBiTB7MRMwEQYKCZImiZPyLGQBGRYD
    Y29tMRkwFwYKCZImiZPyLGQBGRYJbWljcm9zb2Z0MRQwEgYKCZImiZPyLGQBGRYEY29ycDEXMBUG
    CgmSJomT8ixkARkWB3JlZG1vbmQxGjAYBgNVBAMTEU1pY3Jvc29mdCBEZW1vIENBAgo6eAiHAAMA
    AACMMAkGBSsOAwIaBQAwDQYJKoZIhvcNAQEBBQAEgYCjoDdO0PgX9zsKCpqfeXdCI+0XKw6Tomzv
    A6sZQISW13QOLc0kHlMgrC5YZGkHjFbAzUgGALYF77u9ImQiT51p6RabcnQG8E2fuhFxxcKUvx0e
    dzClXsm0jicEc91+hO29gy0PNKbmcBSVFzgTliNco+jQcuvCcy0PCgKaaI1NCwAAAAAAAA==

    --_E41BAC59-E11A-486B-AC11-0BCA378BFCCE_--


    David Downing... If this answers your question, please Mark as the Answer. If this post is helpful, please vote as helpful.

    • Edited by David K. Downing Friday, January 27, 2012 8:31 PM Additional information about MDN
    • Marked as answer by Sankar B2Bi Wednesday, February 1, 2012 8:43 AM
    Sunday, January 22, 2012 1:54 AM
  • What do you mean by an empty MDN? Does it have any headers on it at all?

    If the wrong certificate details are configure for an AS2 party your partner cannot decode/decrypt the message it might look blank. I would make sure your partner has all the certificate details.

    Thanks,


    If this answers your question, please use the "Answer" button to say so | Ben Cline
    • Marked as answer by Sankar B2Bi Wednesday, February 1, 2012 8:44 AM
    Thursday, January 19, 2012 11:35 PM
    Moderator
  • As advised earlier by experts above...install Fiddler or WireShark and trap the Packets that go out which will show you the MDN in a MIME format but the header is readable.

    To make sure verify the AS2-To and AS2-From properties are configured for the Party as a received of the AS2 Traffic. Also make sure you are using AS2-Send pipeline in the Send Port. Lastly make sure you are using your Home Key to sign the AS2 document and Encrypot using Partners Public key.


    amit kumar * Please Indicate "Mark as Answer" if this Post has Answered the Question
    • Marked as answer by Sankar B2Bi Wednesday, February 1, 2012 8:43 AM
    Thursday, January 26, 2012 5:25 PM

All replies

  • What do you mean by an empty MDN? Does it have any headers on it at all?

    If the wrong certificate details are configure for an AS2 party your partner cannot decode/decrypt the message it might look blank. I would make sure your partner has all the certificate details.

    Thanks,


    If this answers your question, please use the "Answer" button to say so | Ben Cline
    • Marked as answer by Sankar B2Bi Wednesday, February 1, 2012 8:44 AM
    Thursday, January 19, 2012 11:35 PM
    Moderator
  • AS2 messages are structured similar to MIME messages.  If you use a utility like Fiddler to monitor the outgoing messages, you can inspect the message that was delivered to your partner.   I included a sample MDN message below for reference, the computed hash is bold and underlined.  Once you have determined the outgoing message is valid or not, it will be easier to isolate the issue.

    Additional information from edit:

    Although the important part of the MDN is the signed Received-Content-MIC (bold).  There is also text information that is included in an MDN.  I highlighted that part of the message in bold italic underline below for reference.

    The structure of an MDN message (unencrypted) is as follows:

    AS2-To: PartnerCompanyName
    Mime-Version: 1.0
    Message-ID: <80BE52B7-0915-423C-8A25-6C4B5F12F633>
    AS2-From: MyCompanyName
    AS2-Version: 1.1
    Content-Length: 3614
    Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg="sha1"; boundary="_E41BAC59-E11A-486B-AC11-0BCA378BFCCE_"
    Date: Wed, 14 Feb 2007 22:07:46 GMT
    Server: Microsoft-IIS/7.0

    --_E41BAC59-E11A-486B-AC11-0BCA378BFCCE_
    Content-Type: multipart/report; report-type=disposition-notification;
     boundary="_8F704D39-0A25-427B-83AA-FEE108DC4A81_"

    --_8F704D39-0A25-427B-83AA-FEE108DC4A81_
    Content-Type: text/plain
    Content-Transfer-Encoding: binary
    Content-ID: {017F345F-F741-4061-B7CB-4014C884DDB1}
    Content-Description: plain

    This is an MDN from MyCompanyName.
    --_8F704D39-0A25-427B-83AA-FEE108DC4A81_
    Content-Type: message/disposition-notification
    Content-Transfer-Encoding: 7bit
    Content-ID: {24DBD01D-9F37-42B0-AD59-53014B61357F}
    Content-Description: body

    Final-Recipient: rfc822; PartnerCompanyName
    Original-Message-ID: <9FFB5B68-94AC-4A15-8887-EF38157A96E4>
    Disposition: automatic-action/MDN-sent-automatically; processed
    Received-Content-MIC: uH5VDjcxreFk4xZzk35zDb1IBkw=, sha1

    --_8F704D39-0A25-427B-83AA-FEE108DC4A81_--

    --_E41BAC59-E11A-486B-AC11-0BCA378BFCCE_
    Content-type: application/pkcs7-signature; name="smime.p7s"
    Content-Transfer-Encoding: base64

    MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIF5jCCBeIw
    ggTKoAMCAQICCjp4CIcAAwAAAIwwDQYJKoZIhvcNAQEFBQAwezETMBEGCgmSJomT8ixkARkWA2Nv
    bTEZMBcGCgmSJomT8ixkARkWCW1pY3Jvc29mdDEUMBIGCgmSJomT8ixkARkWBGNvcnAxFzAVBgoJ
    kiaJk/IsZAEZFgdyZWRtb25kMRowGAYDVQQDExFNaWNyb3NvZnQgRGVtbyBDQTAeFw0wNjEwMjUx
    ODM4NDJaFw0xMTA3MjUyMTAzMjlaMIGHMQswCQYDVQQGEwJVUzELMAkGA1UECBMCV0ExEDAOBgNV
    BAcTB1JlZG1vbmQxEjAQBgNVBAoTCU1pY3Jvc29mdDEMMAoGA1UECxMDQjJCMRIwEAYDVQQDEwlN
    aWNyb3NvZnQxIzAhBgkqhkiG9w0BCQEWFG1vbmFoa0BtaWNyb3NvZnQuY29tMIGfMA0GCSqGSIb3
    DQEBAQUAA4GNADCBiQKBgQCke+R09K0IZ/elqjLmnh7nc7e+yP8L/3mQjVgBxVI1NLz9C55YxnnQ
    8JlCqDqar7/hpdrnvVS4X/Ewsrq4xQFdC6MNpff7TYpx2tiKaEZqIepthIPvh5nRx5asK307X9e8
    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cNAQEFBQADggEBAA99heT6
    uoYZSC9PUsQ0ZWAmReT890bZ6ZOA+ZDuJWGwhFJ1fKUIfywx6UuJOs5aXWGBHs5qE/VNEKe5Upko
    KL899XLJuv2JrAs1FBXMaLw+mP/S+CGImLUB9rytUOwPRkGzryvgVrmehKgW6cI4ASekD7paupMx
    6iHlU2AdZd9eKFenRAh1QBApECrcArYzjN8dEkU4N5qF5kFNA3Drgj9etHXePeEoGNhA/hNukepM
    nlZcVJqpSPuWTAN6i6eiZyLxnVCI5OZlZqymTovYi6M55BO8TC1ufu1/3NJboqL4ofHbvBMPn+AB
    sssq/xKdO+01N9cbDXLB9DZ8f/EOe0cxggEwMIIBLAIBATCBiTB7MRMwEQYKCZImiZPyLGQBGRYD
    Y29tMRkwFwYKCZImiZPyLGQBGRYJbWljcm9zb2Z0MRQwEgYKCZImiZPyLGQBGRYEY29ycDEXMBUG
    CgmSJomT8ixkARkWB3JlZG1vbmQxGjAYBgNVBAMTEU1pY3Jvc29mdCBEZW1vIENBAgo6eAiHAAMA
    AACMMAkGBSsOAwIaBQAwDQYJKoZIhvcNAQEBBQAEgYCjoDdO0PgX9zsKCpqfeXdCI+0XKw6Tomzv
    A6sZQISW13QOLc0kHlMgrC5YZGkHjFbAzUgGALYF77u9ImQiT51p6RabcnQG8E2fuhFxxcKUvx0e
    dzClXsm0jicEc91+hO29gy0PNKbmcBSVFzgTliNco+jQcuvCcy0PCgKaaI1NCwAAAAAAAA==

    --_E41BAC59-E11A-486B-AC11-0BCA378BFCCE_--


    David Downing... If this answers your question, please Mark as the Answer. If this post is helpful, please vote as helpful.

    • Edited by David K. Downing Friday, January 27, 2012 8:31 PM Additional information about MDN
    • Marked as answer by Sankar B2Bi Wednesday, February 1, 2012 8:43 AM
    Sunday, January 22, 2012 1:54 AM
  • Hi Ben,

     

    Thanks for your quick responce,

     

    While the MDN message triggers automatically from my system to partner system it was going without header and it seems to be empty page.

     

    please advaice me if i have to configure any aditional set-up for this AS2 Synchronous MDN.

     

    Kind Regards,

     

    Ram.

    Wednesday, January 25, 2012 9:05 AM
  • As advised earlier by experts above...install Fiddler or WireShark and trap the Packets that go out which will show you the MDN in a MIME format but the header is readable.

    To make sure verify the AS2-To and AS2-From properties are configured for the Party as a received of the AS2 Traffic. Also make sure you are using AS2-Send pipeline in the Send Port. Lastly make sure you are using your Home Key to sign the AS2 document and Encrypot using Partners Public key.


    amit kumar * Please Indicate "Mark as Answer" if this Post has Answered the Question
    • Marked as answer by Sankar B2Bi Wednesday, February 1, 2012 8:43 AM
    Thursday, January 26, 2012 5:25 PM
  • See this walkthrough :

    http://64.4.10.89/en-us/library/bb743306%28v=bts.10%29.aspx

     

    Might be helpful to you!


    If this post answers your question, please mark it as such. If this post is helpful, click 'Vote as helpful'.
    • Marked as answer by Sankar B2Bi Wednesday, February 1, 2012 9:00 AM
    • Unmarked as answer by Sankar B2Bi Tuesday, February 7, 2012 7:52 AM
    Saturday, January 28, 2012 4:18 PM
  • Hi Ram

    Is this resolved now ? if yes , could you explain .

    Thanks.


    http://biztalkguide.blogspot.com/ Please mark as answer if this solved the issue.Thanks

    Wednesday, March 14, 2012 4:13 PM
  • hi did you find an answer to this , i am facing exact same problem . 

    blank synchronous MDN response going back to client. 


    Friday, July 24, 2015 6:29 AM