my dog learned polymorphism
The moose likes Android and the fly likes Web Service response not getting. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "Web Service response not getting." Watch "Web Service response not getting." New topic

Web Service response not getting.

Vimal Rajpara

Joined: Jan 20, 2011
Posts: 4

I am working on parsing one web service in Android project with java code.

I am able to parse one similar web service for 10 data in response to HTTP Post but i can not get response for actual web service all for 160 data in web service calling through HTTP Post method.

Please help me. both web service are same but only response data size is differ.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Are you sure this is Android-related? In other words, does it work from a Java desktop app?
Vimal Rajpara

Joined: Jan 20, 2011
Posts: 4
the same web service give proper 160 data response in BlackBerry application but didn't give response in android app for 160 data response.

interesting thing is that if we make short response which is 10 data from server then same project works well and after replacing URL to 160 data response link, it didn't response.
Perry Hoekstra

Joined: Dec 07, 2010
Posts: 28
I guess I don't know what a 10 data response or a 160 data response is. The first steps I would try is to determine if the entire flow is working from Android to server and back again.

So long as your request/response is not encrypted (HTTPS), I would use tcpmon to see the request/response to confirm that Android is sending the proper HTTP request and the server is sending back the correct web service response. You can find tcpmon here:

If you have confirmed that all the plumbing is working correctly, then I would narrow it down to the web service parsing code within your Android app. Is the web service response JSON or SOAP based? Depending on what type, you would use different libraries. You should be able to test your parsing code using a unit test within your IDE. If everything looks good but it is still not working, then LogCat is your friend.

Perry Hoekstra
Peter Johnson

Joined: May 14, 2008
Posts: 5852

"V Android", please see your private messages regarding an important administrative matter.

JBoss In Action
I agree. Here's the link:
subject: Web Service response not getting.
It's not a secret anymore!