简而言之,我的应用程序现在工作的时间超过了一年。我有 100000+ 次下载,直到最近我的肥皂网络服务才开始出现问题。如果两台或多台设备连接到同一个无线连接,则只有一台设备正常工作。在所有其他设备上,连接都会超时。以下是 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();
}
任何建议或想法都会有所帮助。