Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android WSDL/SOAP service client

I have some web services that uses WSDL/SOAP for communication. Specifically, I am using PHP and Nusoap to make them. How can I use these web services on Android? I am going to get a new Android phone soon, so I need to know.

It is easy to do it with Windows Mobile and Visual Studio.

Thanks

like image 795
QAH Avatar asked Sep 27 '09 18:09

QAH


2 Answers

Android doesn't come with SOAP library. However, you can download 3rd party library here:
https://github.com/simpligility/ksoap2-android

If you need help using it, you might find this thread helpful:
How to call a .NET Webservice from Android using KSOAP2?

like image 184
Viktor Brešan Avatar answered Nov 13 '22 00:11

Viktor Brešan


i founded this tool to auto generate wsdl to android code,

http://www.wsdl2code.com/Example.aspx

public void callWebService(){
    SampleService srv1 = new SampleService();
    Request req = new Request();
    req.companyId = "1";
    req.userName = "userName";
    req.password = "pas";
    Response response =  srv1.ServiceSample(req);
}
like image 10
Bennya Avatar answered Nov 12 '22 23:11

Bennya