Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Web Service response not getting.

 
Vimal Rajpara
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure this is Android-related? In other words, does it work from a Java desktop app?
 
Vimal Rajpara
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"V Android", please see your private messages regarding an important administrative matter.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic