Query On WebService

  • Thread starter poornima.venkataraman
  • Start date
P

poornima.venkataraman

Hai,

In my Windows CE device application, i need to send some records
from 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)

I even tried out by giving Machine name and the IP Address in place of
localhost in the URL.

What can i do to resolve this error.

Thanks in advance.

Poornima
 
S

SHaul

1. disable the firewall on your desktop computer.
2. on the mobile applictaion, in the webReference properties, in the web
reference url property, change the "local host" to the ip of the desktop
computer, add the project name and the specific service (asmx class) :
example:
http://0.0.0.0/myFirsWebService/service1.asmx
 
P

poornima.venkataraman

SHaul said:
1. disable the firewall on your desktop computer.
2. on the mobile applictaion, in the webReference properties, in the web
reference url property, change the "local host" to the ip of the desktop
computer, add the project name and the specific service (asmx class) :
example:
http://0.0.0.0/myFirsWebService/service1.asmx

Hi
Thanks for your solution.But I followed what you specified,but still
the Connection failure is coming
In my device application when i changed the Url to the one of the
device(emulator) the connection failure error got resolved but Protocol
Error was coming.
..In desktop application,when we run the webservice eg.
http://localhost:1422/MyWebService/FirstWebService.asmx
the port number is also appearing.Can you please tell me why the port
number is appearing.
 

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