c# - How to change SOAPException ResponseCode -
i using soapexception
handle invalid inputs , other kind of exception handling in web service. it's working fine , able format , return proper information client. following method similar 1 explained here http://www.codinghorror.com/blog/2004/08/throwing-better-soap-exceptions.html
now want change response code returns when soapexception
happens (responsecode: 500 internal server error).
following default response code getting in addition own custom xml
data when soapexception
occurs. want change responsecode
200.. possible , how?
responsecode: 500 (internal server error) connection:close content-length:494 cache-control:private content-type:text/xml; charset=utf-8 date:tue, 25 jan 2011 06:59:30 gmt server:asp.net development server/8.0.0.0 x-aspnet-version:2.0.50727
in support of john sauders' word of warning above, according ws-i basic profile:
"r1126 instance must use "500 internal server error" http status code if response message soap fault."
http://www.ws-i.org/profiles/basicprofile-1.0-2004-04-16.html#refinement16488480
Comments
Post a Comment