|
Home > Archive > BizTalk Server General > July 2005 > Using HTTP Adapter to send a XML Response Back to Client
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Using HTTP Adapter to send a XML Response Back to Client
|
|
| Ameet Konnur 2005-07-25, 8:12 am |
| Greetings,
I am new to BizTalk and i managed to set up a Rx Port which accepts a XML
Request on HTTP (used the ISAPI BTSHTTPReceive.dll). The Send port
configured writes a mapped Response XML to a file in a specified folder
(used FILE Adapter).
Now i want to send back a XML response to the HTTP client (which currently
just keeps waiting for a response and times out)
Would appreciate if any one can provide me a solution for this.
Thanks in advance.
Cheers
--
Ameet
| |
| Yossi Dahan 2005-07-25, 8:12 am |
| Ameet
I understand from you last statement ("which currently
> just keeps waiting for a response and times out") that you are talking
> about synchronous communication pattern.
in this case the first step would be to change your receive port from one
way receive port to a two way (request-response) port.
this will allow you to return a response to the client.
of you have an orchestration in your soution you will have to change that
port as well, doing so will add another operaion to which you can return
your response.
if you're not using an orchestration you will need to find a way to return
the response message to the message box with the correct correlation token,
and that depends more on your exact scenario.
Yossi Dahan
"Ameet Konnur" <ameet@ameet.com> wrote in message
news:6d3edb9d30d34a2eb2267df82d8e4659@ur
eader.com...
> Greetings,
>
> I am new to BizTalk and i managed to set up a Rx Port which accepts a XML
> Request on HTTP (used the ISAPI BTSHTTPReceive.dll). The Send port
> configured writes a mapped Response XML to a file in a specified folder
> (used FILE Adapter).
> Now i want to send back a XML response to the HTTP client (which currently
> just keeps waiting for a response and times out)
>
> Would appreciate if any one can provide me a solution for this.
> Thanks in advance.
>
> Cheers
> --
> Ameet
| |
| David Stucki [MSFT] 2005-07-25, 6:04 pm |
| It sounds like you want to do 2-way HTTP Receive (Request-Response), send a
message to FILE (1-way only) and then somehow return a response to the HTTP
client. The easiest way to accomplish this would be to create an
orchestration. In this orchestration you would send a message to the FILE
send port, then you would send some kind of response back to the HTTP
client. An alternative would be to change the HTTP receive port to be
1-way instead of Request Response, however, then the HTTP clients would not
know whether the entire operation succeeded/failed, just that a message was
accepted and kicked off some process.
If you're currently doing this without an orchestration I would indeed
expect the HTTP clients to time out.
Hope this helps,
Dave Stucki
Software Development Engineer/Test
Microsoft Biztalk Server
|
|
|
|
|