G
Giulio Petrucci
Hi there,
I have a simple web service, exposing a web method DoSomething() which
might take a lot to execute. I'm writing a client application (using
..NET FW *2.0*) and I'd like to invoke it asynchronously. I did the
following:
- create a proxy class "Service.cs" runnind disco+wsdl against the web
service interface;
- import it in my project;
1) I tried to use the DoSomethingAsync() and wait for the
DoSomethingComplete event but I could not getting it working: the *real*
web service returned properly but the event wasn't generated at all. Any
suggestion?
2) I tried using the BeginDoSomething/EndDoSomething pattern and
everything worked fine;
3) Is the Begin/End patter *old-style*? I must confess I did't get it...
Thanks in advance.
Have a nice day,
Giulio - Italia
I have a simple web service, exposing a web method DoSomething() which
might take a lot to execute. I'm writing a client application (using
..NET FW *2.0*) and I'd like to invoke it asynchronously. I did the
following:
- create a proxy class "Service.cs" runnind disco+wsdl against the web
service interface;
- import it in my project;
1) I tried to use the DoSomethingAsync() and wait for the
DoSomethingComplete event but I could not getting it working: the *real*
web service returned properly but the event wasn't generated at all. Any
suggestion?
2) I tried using the BeginDoSomething/EndDoSomething pattern and
everything worked fine;
3) Is the Begin/End patter *old-style*? I must confess I did't get it...
Thanks in advance.
Have a nice day,
Giulio - Italia