Baran wrote: > Any idea about where can I find GetMethod class's > getResonseBodyAsString() method in SDK 0.9. > > I need to perform the web service client activity, it was fine in the > m5 but I can't find the method to retrieve web service respone as > string in new SDK.
There is no GetMethod in the Apache HTTP Components, which is what Android now uses, replacing the former Jakarta Commons HttpClient. Admittedly, the HTTP Components documentation leaves a bit to be desired, even at their home site (http://hc.apache.org). You might wish to take a peek at this sample code: http://tinyurl.com/65qng2 It would appear that the way to get a String representation of the HTTP response is via: EntityUtils.toString(rsp.getEntity()) (where rsp is the HttpResponse you got from execute()). -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.1 Published! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

