当前位置:编程学习 > wap >>

【求助】android 调用https接口问题

我有两台android机器
一台调用https接口正常,
一台调用https接口报错org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope (position:START_TAG <html>@1:7 in java.io.InputStreamReader@4194a948) 

代码是这样的
SoapObject request = new SoapObject(namespace, method);
for (int i = 0, len = params.size(); i < len; i++) {
request.addProperty(params.get(i).getName(), params.get(i)
.getValue());
}
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(
SoapEnvelope.VER10);
envelope.bodyOut = request;
envelope.setOutputSoapObject(request);
// envelope.encodingStyle = "UTF-8";
HttpsTransportSE httpTransportSE = new HttpsTransportSE(host, port,
WSUrl, 3000);
FakeX509TrustManager.allowAllSSL();
httpTransportSE.call(namespace + method, envelope);


求大神帮忙解惑。 Android https  --------------------编程问答-------------------- 在线等答案! --------------------编程问答-------------------- 求大神帮忙,在线等! --------------------编程问答-------------------- 大神在哪里??????
补充:移动开发 ,  Android
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,