}
}
HttpTransportSE httpTransport = new HttpTransportSE(url);
SoapSerializationEnvelope soapEnvelope = new SoapSerializationEnvelope(SoapEnvelope.VER10);
httpTransport.debug = bDebug;
soapEnvelope.env = "http://www.w3.org/2001/12/soap-envelope";
try {
SoapObject rpc = new SoapObject("http://www.w3.org/2001/12/soap-envelope", methodName);
for (int i=0; i<params.length; i++) {
if(bDebug) System.out.println("doCall param " + i + " = " + params[i]);
rpc.addProperty("item"+i, params[i]);
}
soapEnvelope.bodyOut = rpc;
if(bDebug) System.out.println("doCall " + methodName + "(" + toDisplay(params) + ")");
httpTransport.call(methodName, soapEnvelope);
out.println(soapEnvelope.getResult());
return 1;
} catch (Exception e) {
e.printStackTrace();
}