• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Web Service response not getting.

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"V Android", please see your private messages regarding an important administrative matter.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic