Discussion:
http adapter and 200 success code vs. 202 success code
(too old to reply)
biztalker
2004-07-09 20:01:03 UTC
Permalink
question wrt to the response from Allen (posted below):
1) if i use a request-response http receive adapter, then response sends back a 200 success code, and on the other hand, for a one-way http receive adapter, the adapter sends back a 202 success code. is this correct?

2) using the request-response http receive adapter, is it possible to send other content in the response in addition to the 200 success code?

Original question and response from Allen follow:
-----------------------------------------------------------------------------------------------
Correlation token is XML string in form of
<BizTalkHttpReceive><CorrelationToken>xxx-GUID-xxx</Correlation
Token></BizTalkHttpReceive>. The GUID can link your future request to the
original message.
Sample usage: If you scenario is a long-running process that immediate
response is not possible, Then you can set it up to return a correlation
token GUID. In you scenario that the user with this GUID, they can query
the result or progress at a later time.
202 is One-way either with no body or XML string containing correlation
token
200 is Request-Response where a response message is being returned.
- Allen Zhang (MSFT)

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
hey all
from the help doc
"4. After the message has been read and successfully submitted to the
server, the HTTP receive adapter sends an HTTP code 202 back to the client
indicating that the request was accepted.
Optionally, the HTTP receive adapter can send a message correlation token
on the HTTP response. This correlation token represents the message within
BizTalk Server. If the HTTP receive location is in a request-response port,
the adapter returns success code 200 along with the response message. "
my question: i get confused by the term 'correlation token'...dunno what
it means/represents, so if anyone could shed some light on this, that would
be gr8.
secondly, under what situations does the http adapter send back code 202,
and when does it send back code 200?
thanks
Andy Nash [MSFT]
2004-07-12 16:04:00 UTC
Permalink
In answer to your questions

1) Yes that is correct.

2) In a request response scenario you would obviously be sending a response
message back the format of which is completly under your control but would
have to be agreed out-of-band with the caller. If you meant could you send
other response codes then no.
--
Andy Nash (MSFT)

This posting is provided "AS IS" with no warranties, and confers no rights.
Post by biztalker
1) if i use a request-response http receive adapter, then response sends
back a 200 success code, and on the other hand, for a one-way http receive
adapter, the adapter sends back a 202 success code. is this correct?
2) using the request-response http receive adapter, is it possible to send
other content in the response in addition to the 200 success code?
-----------------------------------------------------------------------------------------------
Correlation token is XML string in form of
<BizTalkHttpReceive><CorrelationToken>xxx-GUID-xxx</Correlation
Token></BizTalkHttpReceive>. The GUID can link your future request to the
original message.
Sample usage: If you scenario is a long-running process that immediate
response is not possible, Then you can set it up to return a correlation
token GUID. In you scenario that the user with this GUID, they can query
the result or progress at a later time.
202 is One-way either with no body or XML string containing correlation
token
200 is Request-Response where a response message is being returned.
- Allen Zhang (MSFT)
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
hey all
from the help doc
"4. After the message has been read and successfully submitted to the
server, the HTTP receive adapter sends an HTTP code 202 back to the client
indicating that the request was accepted.
Optionally, the HTTP receive adapter can send a message correlation token
on the HTTP response. This correlation token represents the message within
BizTalk Server. If the HTTP receive location is in a request-response port,
the adapter returns success code 200 along with the response message. "
my question: i get confused by the term 'correlation token'...dunno what
it means/represents, so if anyone could shed some light on this, that would
be gr8.
secondly, under what situations does the http adapter send back code 202,
and when does it send back code 200?
thanks
Loading...