File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Web Service response not getting." Watch "Web Service response not getting." New topic
Author

Web Service response not getting.

Vimal Rajpara
Greenhorn

Joined: Jan 20, 2011
Posts: 4
Hi,

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
Marshal

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


Ping & DNS - my free Android networking tools app
Vimal Rajpara
Greenhorn

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
Greenhorn

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: http://ws.apache.org/commons/tcpmon

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
author
Bartender

Joined: May 14, 2008
Posts: 5811
    
    7

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


JBoss In Action
 
wood burning stoves
 
subject: Web Service response not getting.
 
Similar Threads
How enable WebService data type inheritance?
Help to create a Web service that return javax.mail.internet.MimeMultipart
Testing a web service
Webservices and Request/Response
Need some explanations about web-services basics.