-
1. Capture response of HTTPRouter
tfennelly Feb 28, 2011 7:10 AM (in response to passiabhijit)You should be able to access the responseCode in the ESB message headers/properties of the message produced by that action. Did you check the docs? Did you look at the quickstarts that use this action?
-
2. Capture response of HTTPRouter
tfennelly Feb 28, 2011 7:11 AM (in response to tfennelly)I should have also said... take a look at the code for this action too. Worse case scenario... you could probably extend it and modify its behavior.
-
3. Capture response of HTTPRouter
passiabhijit Feb 28, 2011 7:38 AM (in response to tfennelly)Hmmm... HTTPRouter under the wraps uses org.apache.commons.httpclient. httpclient's response is 404 but HTTPRouter' response is 200 as for it the complete process happened.
You are right I may have to use the code and extend it to send the actual response.
-
4. Capture response of HTTPRouter
passiabhijit Feb 28, 2011 7:40 AM (in response to passiabhijit)Though on second thought, shouldn't HTTPRouter return the response of org.apache.commons.httpclient as the response code???
-
5. Capture response of HTTPRouter
tfennelly Feb 28, 2011 8:02 AM (in response to passiabhijit)A HttpResponse instance is attached to the ESB Message Body... it contains the response code. The key on the body is HttpResponse.RESPONSE_KEY.
-
6. Capture response of HTTPRouter
passiabhijit Mar 1, 2011 12:22 AM (in response to tfennelly)Thanks Tom, that's what I was looking for.
cheers,
Abhijit