要するに、私のアプリケーションは今よりも長く機能します。ダウンロード数は 100000 回を超えていますが、最近、石鹸の Web サービスに問題が発生し始めました。2 つ以上のデバイスが同じワイヤレス接続に接続されている場合、1 つのデバイスのみが正常に動作しています。他のすべてのデバイスでは、接続がタイムアウトします。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();
}
提案やアイデアは役に立ちます。