Consume Web Service over CDMA

B

bunmang

Hi,

I'm trying to consume a Web Service, specifically, the Google Web
Service, in a compactframework application, running under Mobile
PocketPC 2003, in a Sprint PCS PDA phone. When the ppc device is
cradled and sync to the PC, and it is using the PC's internet
connection, I can make as many calls to the Web Service and it will
always return results. However, when I take the ppc out of the cradle
and use Sprint's CDMA wireless network, only the first call to the Web
service return results, all subsequent calls yields a WebException. If
I were to close and restart my application, I again can make a
successful call to the Web Service one time, but all subsequent calls
yields the WebException. I have tried consuming the web service by
adding the service to my C# project as a WebReference, as well as using
the WSDL.exe utility to generate a proxy class and connect that way,
both yield the same result. Has anyone come accross this situation or
can point me in the right direction to try and solve this problem ?
Thanks in advance.

Long
 
N

nzpcmad

Previous posts on this problem have suggested:

"Solution is to use the ip address of the webservice rather than the
domain
name."

Thanks
 
B

bunmang

bunmang said:
Thanks for the reply. I'm trying to test this suggestion but can't
seem to get the IP address for the Google API. The URL is
http://api.google.com/search/beta2 and when I do a nslookup i get
216.239.37.104, but http://216.239.37.104/search/beta2 isn't a valid
url. Does anyone know what the IP is for the Google Web Service ?
Thanks.

It looks like www.google.com and api.google.com shares the same IP
address and if you use the IP address, it defaults to www.google.com.
As such, has anyone been able to consume the Google Web service or any
web service from a CF application using a wireless network (CDMA, EVDO,
GPRS) consistently ? Anyone ?
 
B

bunmang

bunmang said:
It looks like www.google.com and api.google.com shares the same IP
address and if you use the IP address, it defaults to www.google.com.
As such, has anyone been able to consume the Google Web service or any
web service from a CF application using a wireless network (CDMA, EVDO,
GPRS) consistently ? Anyone ?

Here's another bit of information, I created a simple web service
hosted on my own web server and tried to consume it from the ppc. I
did some packet sniffing on my web server and noticed that the first
request to the web service used the domain name as the host, all
subsequent requests uses the IP address. This may be the cause why
Google failed due to reasons explained in the previous post. Is there
a way to call the Web Service and force the host to be the domain name ?
 

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