Last post Nov 15, 2009 11:12 PM by samir_p1979
Sep 30, 2009 01:00 AM|samir_p1979|LINK
I have a requirement to intercept all SOAP requests and extract request details to instantiate a serializable object. As a starting poing I've created a simple asp.net webservice with Method "Add(int a, int b). I'm able to intercept the request and extract
details as well. However, for some strange reason the request is coming back as "Client found response content type of '', but expected 'text/xml'. The request failed with an empty response." the status-code of Response is "400: Bad Request". I tried consuming
the web-service from asp.net webform as well as WebServiceStudio. But without any luck. Could anyone please help me out with this?
HttpModule and 400 Bad Request
Sep 30, 2009 02:46 AM|florinlabou|LINK
Maybe you could provide some code out of your httpmodule.
Nov 15, 2009 11:12 PM|samir_p1979|LINK
The request input stream was getting read before being forwarded to the next httpmodule in the pipleline. After changing the code to copy the bytes from input stream to another array for processing, it started working.