web service problems

  • Thread starter Thread starter getzce
  • Start date Start date
G

getzce

So i'm trying to connect to a web service through my windows ce device.
However, my webservice doesn't even appear to work. I create it, and
make a simple multiply method, and I can see it when i debug. Once I
build it however, and try to navigate to localhost where it is located
it just shows a screen saying that the xml is not well parsed? any
suggestions?
 
Alright, so in response to my earlier post, I can view my web service
running on my machine by opening up the URL in my browser, which is
http://localhost:1596/Service/Service.asmx when I try to reach it
through my device, I get an exception that it was unable to connect to
the remote server. In the reference file I have set this.Url =
"http://<myURL>:1596/Service/Service.asmx"; still no luck....does
anyone have any advice?
 
In continued response to myself, I am now seeing a "Server Error in '/'
Application." page come up on the ce device. It says to set custom
errors mode to off...which I did, and I rebuilt it, yet I am getting
the exact same thing...anyone? bueller?
 
Don't use localhost for your address. That won't resolve. Remember the
emulator is a virtual device. localhost would simply point back to
itself.
Best bet is to use the IP address of your development machine in the
URL for your web service. You should get a connection that way.
Good luck!
 
Back
Top