Synchronous EDI web service issue RRS feed

  • Question

  • I have a partner that wants to call my web service with an EDI doc and receive back an EDI doc.  If the EDI validation fails they want to receive back a failed 997.  The happy path is easy, but how can I only send the 997 back to them if validation fails.  Biztalk 2006 R2 only is able to either create the 997 or not create the 997.  I have set the 997 to create, but not to auto send back through the recieve pipeline (which closes the web call).  I have an orchestration with a send-receive port set to activate which contains the map for the EDI document that I want to send back.  Is there a way for me to have enough information to "grab" the 997 out of the message box within my orchestration or will I have to write a custom EDI receive pipeline to do my work?
    Thursday, August 19, 2010 4:19 PM

All replies

  • Hi,

        In the 997 there is field that says that document has failed or passed. you can parse this area and figure out if this ack is for failed document or not. Then you can write a pipeline component that can dump it some where or send to back.


    Am I making sense to this problem. If not please describe your problem more.





    If this answers your question, please mark it as "Answered".
    Thursday, August 26, 2010 1:17 PM
  • you can subscribe to 997 message by its message type== ""

    you can implement an orcherstration which subscribe to 997 message and timeout by some time if no message fails.

    Bhola Meena []
    Monday, August 30, 2010 5:20 PM
  • Yeah, the problem is that my partner wants either a 997 or the response EDI.  If I check the box to produce a 997 on the partner, then it will automatically send the 997 back to my partner and close the web connection.

    We have determined that we will need to create a custom pipeline in order to fulfill our client's requirement.

    Monday, August 30, 2010 5:42 PM
  • It seems like this is what you are looking for


    Saturday, October 2, 2010 6:22 PM
  • Hi CecilSmirnoff ,


    You can send the 997 back only if the EDI document submitted is rejected.


    You can have a filter on the Port for AK901 as "R".


    R means Rejected ,then only those will be Sent Back through that Port.(This is for 997's only)





    Thanks... SPN
    • Proposed as answer by SPN Biztalk Saturday, October 23, 2010 8:24 PM
    Friday, October 8, 2010 1:30 AM