Can I send a status other than HTTP 500 during a SOAP Fault?

T

Tony V

Hi,

Can I set the HTTP status return code to something other than 500 in a
C# web service when a Soap Fault is thrown?

I want to override the default SOAP behavior of return HTTP 500 when a
fault is thrown.

Reason being is that a Java Application with an older JDK is calling
my service and when it recieved the 500 error the class on the Java
End will not let them read the body so they can't retrieve the SOAP
fault. Unfortunately upgrading to a new Java JDK is not an option
since we are in an enterprise environment and the admins won't allow
it.

Thanks,

Tony
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top