[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.webservices

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

tony

8/12/2003 7:52:00 PM

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