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.

Re: webexception protocol error by Neil

Neil
Fri Sep 29 17:16:48 CDT 2006

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.

--
-------------------------
Neil Cowburn
Principal Partner
OpenNETCF Consulting, LLC


"raju" <ponnurajs@gmail.com> wrote in message
news:1159343432.069245.272400@k70g2000cwa.googlegroups.com...
> 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.
>