getting incomplete xml code using rest in android
I'm calling the openNMS webservices to my android mobil开发者_如何学编程e using restlet framework. Iam getting the resource but not complete.Its getting only limited number of xml elements. I'm calling the web service using
final String url = "http://172.16.3.32:8980/opennms/rest/outages?limit=20";
Log.d(TAG, "url = " + url);
ClientResource resource = new ClientResource(url);
resource.setChallengeResponse(new ChallengeResponse(ChallengeScheme.HTTP_BASIC, "admin", "admin"));
Log.d(TAG, "getting resource");
resource.get();
rep = resource.get();
Log.v(TAG, "get res rep"+ rep.getText().toString());
Am i missing anything??
Sorry folks,
It was all right. The log couldn't display all the xml content and i missed something in my code which stopped parsing in the middle.
Thanks for the response.
精彩评论