总之,我的应用程序现在工作超过一年以上。 我有100000+下载,而日前才与我的SOAP Web服务的问题开始出现。 如果两个或多个设备被连接到同一无线连接只有一个设备工作正常。 在所有其他设备连接会超时。 下面是WS呼叫的方法的示例:
public static Object callWSMethod(String methodName, String soapAction,
PropertyInfo[] properties) throws IOException,
XmlPullParserException{
SoapObject request = new SoapObject(NAMESPACE, methodName);
if (properties != null)
for (PropertyInfo property : properties) {
request.addProperty(property);
}
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(
SoapEnvelope.VER11);
envelope.setOutputSoapObject(request);
envelope.implicitTypes = true;
HttpTransportSE httpTransport = new HttpTransportSE(SOAP_ADDRESS, 15000);
httpTransport.debug = true;
httpTransport.call(soapAction, envelope);
return envelope.getResponse();
}
任何建议或想法将是有益的。