I am trying to develop an android application using our webservice.
Here is the code:
private String SOAP_ACTION= "http://.../TestFunction";
private String METHOD_NAME = "TestFunction";
private String NAMESPACE = "http://.../";
private String URL = "http://.../webservice.php";
SoapObject request = new SoapObject(NAMESPACE,
METHOD_NAME);
SoapSerializationEnvelope envelope = new
SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.setOutputSoapObject(request);
HttpTransport androidHttpTransport = new HttpTransport(URL);
androidHttpTransport.call(SOAP_ACTION, envelope);
The testfunction is a function without any parameters or return
values. It is tested correctly using other applications.
As long as calling to the last line of code, the emulator exited.
I tried Eclipse, Ksoap2 in both Windows and Ubuntu.
Can anyone help? Many thanks!
Some small questions:
1) do i need to use "....php?wsdl" in URL?
2) do i need to use explict IP address in URL?
3) should I use androidhttptransport? Is it in the ksoap for android?
i downloaded but the JAR generates a compile error.
4) Is there any specific requirement for the webservices?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en