Hi,
I am trying to raise an exception from within a WebMethod
in my web service. Is this possible at all? If so, how do
you do it?
If this is not possible, then I would be happy to return
an enumeration of response codes, but have been
unsuccessful in declaring and returning an enumeration.
Is this possible at all? If so, how do you do it?
Regards,
Tobias Lekman
Marina - 11 Aug 2003 18:26 GMT
Putting a statement like 'throw new Exception()', will do it. Or just
having a line of code that does it.
What is returned is a SoapException object, I think. But this should have
properties to let you drill down and get the contents of the original
exception.
> Hi,
>
[quoted text clipped - 9 lines]
> Regards,
> Tobias Lekman