|
|
WebException calling a Web Service from a device |
|
Author |
Message |
CyberOps

|
Posted: Wed Apr 06 07:29:42 CDT 2005 |
Top |
PocketPCDev >> WebException calling a Web Service from a device
Hi,
I'm consuming a webservice in a smart device application running on pocket
pc 2003... It works fine on the emulator but generates a webexception (with
no further information) when I try to run the app on my device connected via
ActiveSync (usb).
The service is running on IIS and I have changed the url in the code to
point to my IP address instead of localhost but I still get the exception. I
believe the problem could be to do with authentication but I'm not sure...
can anyone help?
Cheers, Simon
Computer16
|
|
|
|
 |
Arun

|
Posted: Wed Apr 06 07:29:42 CDT 2005 |
Top |
PocketPCDev >> WebException calling a Web Service from a device
Did you try to open the web service in Pocket IE.
Cheers,
Arun.
|
|
|
|
 |
Arun

|
Posted: Wed Apr 06 07:50:22 CDT 2005 |
Top |
PocketPCDev >> WebException calling a Web Service from a device
Check whether you have set all proxy settings in Pocket PC to access
the web service.
Cheers,
Arun.
|
|
|
|
 |
SimonM

|
Posted: Wed Apr 06 08:41:12 CDT 2005 |
Top |
PocketPCDev >> WebException calling a Web Service from a device
I can browse to the web service using PocketIE, I don't have any proxy
settings set up, but if I can see the service with PocketIE then I wouldn't
need any or would I?
Cheers, Simon
|
|
|
|
 |
Arun

|
Posted: Thu Apr 07 04:23:00 CDT 2005 |
Top |
PocketPCDev >> WebException calling a Web Service from a device
Hi Simon,
As of me You don't really need anything, if you are able to browse the
service from PocketIE.
One thing make sure the web reference is pointing to the same address
you are using to browse in PocketIE.
Keep a check point in the Web Reference (Reference.cs) constructor to
check the address to which it is pointing to.
Try to get the Exception error message from the web service, either
create a structure includes the message and the (DataSet) data and
return that in all the methods to get the proper error message to fix
the problem. Or you can even use Extended Properties of DataTable for
errors. Or you write to a error log in web services to track.
Hope this helps,
Cheers,
Arun.
|
|
|
|
 |
|
|