Search code examples
androidweb-serviceswsdlksoap2

WSDL soap webservice in Android, error 404


I have a wsdl url written for android to consume some soap web services. I used the wsdl2code.com to generate the classes from the wsdl URL. I added the class to my project folder in eclipse and call the method (which is used for registration purpose of the user) Register from the generated class.

The problem occurs here, calling the httptrasportSE.call method I am receiving a 404 error. Does anybody have any idea about this situation.

I have already tested the webservise with the wsdl service tester wcfstorm.com testing environment. It's working fine there.

I think the error is some where in the class that which where I am calling the service via KSOAP. But I failed to find it out.


Solution

  • 404 means that the web service you are trying to access couldn't be found.

    Make sure that you have the correct namespace, soap service URL and method name. You can also use Soap UI as a tunnel.

    I.e. android sends the request to Soap UI and soap UI passes the request on to your soap service. You will then be able to see what is sent to the server and what is returned.