Hi,
deciacco wrote:
> That is the entire program.cs file...
> The reference shows up under the Solution Explorer under "Web References".
> The solution builds without any errors and runs, but nothing happends.
> In debugging it looks like the "DailyDilbertImageCompleted_Handler" never
> gets called.
> Thanks
First, the URL you give for the web service has a typo inside. Make sure
that it's not the case in the actual web reference.
http://www.esynaps.com/WebServices/D...lert.asmx?WSDL
instead of
http://www.esynaps.com/WebServices/D...bert.asmx?WSDL
(BTW, if you're in touch with the web service creator, you should tell
him that using tempuri.org as a namespace is not recommended).
Then, you call an asynchronous web service in the "main" method of the
Console application. However, after the request is sent, the application
terminates (when main is finished, the application ends). When the web
service comes back, the application is finished already.
To solve this, you can either call the service synchronously (in which
case, the application waits for the response before ending), or you have
to wait for the response yourself. If you want my advice, since this
seems to be a test application only, use a WinForms application instead
of a Console app.
HTH,
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering:
http://www.galasoft-LB.ch
PhotoAlbum:
http://www.galasoft-LB.ch/pictures
Support children in Calcutta:
http://www.calcutta-espoir.ch