webexception protocol error

R

raju

Hai,

In my device application, i need to send some records to sql
server mobile to desktop sql server.

For that, i created one webservice, when i am calling this
webservice (ordinary helloworld webservice) i am getting the error like
"webexception" status is protocol error. My coding is

Dim oWebService As New localhost.myFirstWebService
Dim sValue As String

oWebService.Url = "http://localhost/"
sValue = oWebService.HelloWorld

MsgBox(sValue)

What can i do to resolve this error.

Thans in advance.

Regards,
Raj.
 
N

Neil Cowburn

The protocol error is because the device is unable to resolve the hostname,
localhost. Try substituing the NetBIOS name for the Web Service server in
place of localhost. Failing that, try the Web Service server's IP address.
 

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

Top