HTTP Adapter and Receive Pipeline

Home Page Forums BizTalk 2004 – BizTalk 2010 HTTP Adapter and Receive Pipeline

Viewing 1 reply thread
  • Author
    Posts
    • #16141

      Hi,

      I have published HTTP adapter in IIS. I am using custom receive pipeline to desassemple and validate xml.

      I want to do the following:

      When we get the correct xml message, I want to return 202 to client.

      When we get invalied xml message, I want to return 406 to client.

      How can I do this? Is there any way I can decide what status code to return after the xml validation in receive piple line?

      I would appreciate any help!.

      Thank you,

      Siva

    • #16165

      I don’t think this is possible.  I tried to accomplish something like this in BizTalk 2004 when there was an error I wanted a specific code to be returned.  I tried all kinds of Http / IIS settings to try to return a different error code with no luck.

      • #16211

        HI Stephen,

        Thank you for your comments. So do you think I can do this by Custom Http adaptor? If it is possible, do you know any article or blogs where I can learn how to create custom http adaptor?

        Now, when I send invalide XML message, the pipeline raise error in Event View after validation done. The error message says what is the reason for the failure. Is it possible return 406 from HTTP adaptor when piple line raise error through?

        Since I am new to BizTalk and .NET I dont have much knowledge. Do you know any webpage where I can learn these?

        Thank you,

        Siva

        • #16212

          Siva,

          There's a sample HTTP Receive adapter included in the SDK with BizTalk 2006, though not with 2004. It's not a high performance adapter, but it's very simple, and it shouldn't be too hard to back port it to 2004 if you want, and modifying it shouldn't be hard to do what you want.

           If you're feeling lazy, then you could just build a simple ASP.NET page that uses the SubmitDirect sample adapter included in the SDK (this one is available in 2004 as well) to send the message over to biztalk. It would certainly be faster to do if you need something put together quickly.
           

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