ResponseHandler 无法在 Android 的 SOAP Web 服务中工作?
ResponseHandler<String> rh=new ResponseHandler<String>() {
// invoked when client receives response
public String handleResponse(HttpResponse response) throws ClientProtocolException, IOException {
HttpEntity entity = response.getEntity();
StringBuffer out = new StringBuffer();
byte[] b = EntityUtils.toByteArray(entity);
out.append(new String(b, 0, b.length));
return out.toString();
}
};
I have added a code from this link for SOAP Web services for android. The code is clean but the sequence for ResponseHandler doesnt respond to anything.I have added Internet permission in the manifest also. Please help me on this I have added the snippet below:
ResponseHandler<String> rh=new ResponseHandler<String>() {
// invoked when client receives response
public String handleResponse(HttpResponse response) throws ClientProtocolException, IOException {
HttpEntity entity = response.getEntity();
StringBuffer out = new StringBuffer();
byte[] b = EntityUtils.toByteArray(entity);
out.append(new String(b, 0, b.length));
return out.toString();
}
};
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
声明代码:
根据下面现有的声明进行更改...
希望可以帮助^_^ cmiiw ..
Statement code :
change according to the existing statement below ...
hopefully can help ^_^ cmiiw ..