For Programmers: Free Programming Magazines  


Home > Archive > Microsoft Webservices > May 2006 > Call webservice asynchronously









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Call webservice asynchronously
Chad

2006-05-18, 7:13 pm

Hi

Sorry for cross posting but vb.net did not answer my question.

In vb6 I downloaded multiple pages from a website asynchronously by
instantiating a dll 3 times that used an inet control with a doevents on the
getchunk method when finished I simply raised the event through the dll. This
method allowed control back to the application but more importantly to
download more pages not waiting for the page before to finish.
It was sloppy but it achieved the purpose with little overhead.

Within VB.NET how do I asynchronously download a response from a webservice
using soap. I cant seem to figure this out without it hanging. When I
search, I keep ending
up at AsyncCallback but cant find an example with this using soap on a
webservice.

When I invoke the send method...(msg contains soap info which returns
response)

Private http As New MSXML2.XMLHTTP30

http.open("POST", ServiceURL, False)
http.setRequestHeader("SOAPAction", """http://xxx.com/MeetingSummary""")
http.setRequestHeader("Content-Type", "text/xml")
http.send(Msg)

It still hangs on the send method even when I thread this class out.

Can you please help???

Regards
Chad

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com