webexception protocol error

  • Thread starter Thread starter raju
  • Start date Start date
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.
 
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.
 
Back
Top