1. Why does 200/204 reply to HTTP Sender when there is nothing to reply for the time being? Both 200, and 204 means that it performed the request, as I know. But you know that the SOAP request is not performed yet. So, how about using the 202 (ACCEPT), which says that your request is accepted, but I should do more processing now for it, and you have to wait a little more for get the result.
Maybe I am mixing with the concept of HTTP RESP and SOAP RESPONSE. ^^; and it is correct? If the mode has performed fully and the HTTP REQ sender is the target for RESPONSE, either in explicit or implicit, then response with 200 and with the SOAP RESPONSE Message.
I'm sorry, but I don't understand your question. Per the WS-Routing specification, it returns a 200/204 if the request is "successfully fulfilled", and a 202 if the request has been accepted but not processed.
Here's an excerpt from the spec:
These are the rules for choosing the appropriate HTTP status code for an HTTP response that is generated in response to an HTTP request message containing a WS-Routing message:
a.. If an implicit reverse path is present in the WS-Routing message in the HTTP request and the request is successfully fulfilled but no WS-Routing message is to be sent along the reverse path then a 204 (No Content) or a 200 (Ok) status code is the appropriate HTTP status code to use.
b.. If an explicit reverse path is present in the WS-Routing message in the HTTP request and the request is successfully fulfilled then a 204 (No Content) or a 200 (Ok) status code is the appropriate HTTP status code to use.
c.. If no reverse path is present and the request is successfully fulfilled then a 204 (No Content) or a 200 (Ok) status code is the appropriate HTTP status code to use.
d.. In either of the three cases above, if the HTTP request has been accepted but not processed then a 202 (Accepted) HTTP status code is the appropriate code to use.
e.. As for all SOAP fault messages carried in an HTTP response message, a 500 (Internal Server Error) is the appropriate HTTP status code to use.
Dig Deeper on Topics Archive
Related Q&A from Anne Thomas Manes
Anne Thomas Manes explains the differences between open source clients and open source implementations. Continue Reading
Anne Thomas Manes discusses the best way to go about creating an enterprise data dictionary and why the systems works well. Continue Reading
Anne Thomas Manes explains the difference between 'hard' real time and 'live' real time systems. Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.