VB.NET service is not working via windows app, but fine if you invoke via asmx page with IE...

W

warren.lafrance

I can invoke my web service via the test page (xxxx.asmx) that visual
studio builds for you...
I am able to open IE and surf to the page and invoke the service..
If I create a windows application and try to invoke it I get a time out
error...
System.Net.WebException: The operation has timed-out.
at
System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest
request)
at
System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest
request)
at
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)

The code looks like this:
Dim service As WebReference.Service1
service = New WebReference.Service1
Try
service.getCamusIDs()

Dim dsCampusList As New DataSet
dsCampusList = service.getCamusIDs()


Catch ex As Exception
Throw
End Try
 
V

Van den Driessche Willy

Is this webservice running in IIS or in the dotnet debugging server ?

If the latter is the case, is the webservice running on the same port
(properties of the webproject)you used when creating the webreference ? By
default it is running on a dynamic port, which might or might not be
different between different runs. It you put in on a fixed port (say 3400),
then refresh the webreference in your windowsapplication, everything should
be fine.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top