Hi,
I have a web service that I call from a winforms application. This web service can be cancelled, or completed,and then will call back the win forms application with a response (i.e.
etc).
This functionality is provided in the VS2005 tools for writing the web service (WCF) so the method called is <MethodName>Asy nc(); which fires off <methodName>Com pleted event when it is done.
What I was wondering is if anyone knows how to programmaticall y return this with either the cancelled flag or another flag (error for example) if the Web service bombs out in an Exception? This would allow the client to know that it is cancelled, but as they did not hit cancel it must have been a server error, and then allows it to kick off another web service to clean up files on the server.
I have a web service that I call from a winforms application. This web service can be cancelled, or completed,and then will call back the win forms application with a response (i.e.
Code:
e.Complete == true
This functionality is provided in the VS2005 tools for writing the web service (WCF) so the method called is <MethodName>Asy nc(); which fires off <methodName>Com pleted event when it is done.
What I was wondering is if anyone knows how to programmaticall y return this with either the cancelled flag or another flag (error for example) if the Web service bombs out in an Exception? This would allow the client to know that it is cancelled, but as they did not hit cancel it must have been a server error, and then allows it to kick off another web service to clean up files on the server.