Hi folks,
A question about throwing a SoapException from a SoapExtension. We have
created a SoapExtension to implement our own user
authaurization/authentication scheme. It all works great, when a user
is not accepted, we simply throw a SoapException object and the .NET
framework magically does all the work : creates a valid SOAP Fault
message and sends it back to the client, specifying an HTTP 500 error
code.
This is the problem, according to the SOAP 1.1 standard, an
authaurization/authentication should return an HTTP 401 error (not
500). Since the .NET framework does all the work, we don't know how to
control which HTTP error code will be sent back to the client. Would
anyone know how to control the HTTP error code generated by the .NET
framework when one throws a SoapException from a SoapExtension?
Thanks a bunch,
Didier