In short, my application lasts longer than a year. I have 100,000+ downloads, and only recently have problems with my web services. If two or more devices are connected to the same wireless connection, only one device is working correctly. On all other devices, the connection time ends. Here is an example of a WS call method:
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(); }
Any suggestions or ideas would be helpful.
android ksoap2 android-ksoap2
Pijetren
source share