--
You received this message because you are subscribed to the Google Groups "ksoap2-android" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ksoap2-androi...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Ho Edgar.
First of all try to remove any quotes symbols ftom httpTransport.call() method's parameter. I mean \"
Hello Manfred,My Name is Edgar Garcia I'm a begging guy using Web Services JAX-WS and Android apps. Actually I created a WS with all annotations @WebService, @WebMethod and @WebParam. My method receives two string parameters username and password, but when I invoke this method from my android app using ksoap2, the method recieves NULL values :S. I was researching and applying all stuff that I saw but nothing seems work.How do you accomplish your web services with Android app for the string parameters?/***************Android****************/
SoapObject request = new SoapObject("http://my.services/", "getList");
request.addProperty("username", "username");request.addProperty("password", "pwd123");SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);envelope.dotNet = true;envelope.setOutputSoapObject(request);HttpTransportSE httpTransport = new HttpTransportSE("http://10.0.2.2:8080/Service");
try {httpTransport.call("\"http://my.services/getList\"", envelope);response = envelope.getResponse();}catch (Exception exception) {return exception.getMessage();}/**********Java Method**********************/
public String getList(@WebParam(name="username") String username,@WebParam(name="password") String password)Could you please tell me what I'm doing wrong?Thanks in advanceEdgar garcia
On Tuesday, September 13, 2011 12:54:14 AM UTC-5, Manfred Moser wrote:ksoap2-android is a maintained forked of the ksoap2 project and has additional features and bug fixes. If you have problem with ksoap2, try ksoap2-android before you post questions on the list. Also if you use an old version... upgrade first.
--