> If the client tries to access a web service with invalid namespace, it
> gets a SOAP exception as invalid SOAPAction.
> The invalid namespace will happen because the proxies on the client side
> were generated before the namespace on the server side was updated.
> I would like to handle this myself and throw a SOAP exception with more
> information in it.
Where do you want to handle it, client side or server side?
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
Blog: http://blogs.atozed.com/kudzu
Ajay Choudhary - 11 May 2005 17:48 GMT
On the server side I would like to throw my own exception to clients with my
information in it.
>> If the client tries to access a web service with invalid namespace, it
>> gets a SOAP exception as invalid SOAPAction.
[quoted text clipped - 10 lines]
>
> Blog: http://blogs.atozed.com/kudzu
Chad Z. Hower aka Kudzu - 11 May 2005 18:16 GMT
> On the server side I would like to throw my own exception to clients
> with my information in it.
Im not sure of anyway offhand. But the webservices classes (both serve and
client) are very flexible. You'll need to dig around a bit and see if you can
hook in at the lower level.
If you cant - you could set up a redirect using a HTTP handler or ASHX, and
then preparse. If its ok, issue a HTTP redirect to send them to the real
webservice, else return the error.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
Blog: http://blogs.atozed.com/kudzu