android - SOAP Calling using Ksoap -
i have soap url http://seycel.com.mx/ws/res2.php need call method deposito 4 parameter from, origin, key word, timestamp.
what trying-
private static final string soap_action = "urn:recargas#recharge"; private static final string method_name = "deposito"; private static final string namespace = "urn:recargas"; private static final string url = "http://seycel.com.mx/ws/res2.php"; public int getinteger2() throws ioexception, xmlpullparserexception { soapobject request = new soapobject(namespace, method_name); propertyinfo pi = new propertyinfo(); pi.setname("from"); pi.setvalue(9239392939); request.addproperty(pi); soapserializationenvelope envelope = new soapserializationenvelope(soapenvelope.ver11); envelope.dotnet = true; envelope.setoutputsoapobject(request); androidhttptransport androidhttptransport = new androidhttptransport(url); androidhttptransport.call(soap_action, envelope); soapprimitive result = (soapprimitive)envelope.getresponse(); return integer.parseint(result.tostring()); } but getting error in value integer no large can 1 guide me how call method 4 parameter origin value should 1212121212
Comments
Post a Comment