How to generate SOAP message with WCF?

How to call a WCF SOAP 1.0 web service from a Java class?

  • I am trying to call a WCF SOAP 1.0 web service for my Android application. How do I call it from a Java class? Can I call it using the javax.soap library? Or is there a better way to make it work on Android?

  • Answer:

    Android doesn't provide any SOAP library. You can use HTTP POST request. But better use 3rd party library, kSOAP2. This is the best way to call WCF web services from Android. You can find the details : http://ksoap2.sourceforge.net/ or https://code.google.com/p/ksoap2-android/.

Abhishek Sett at Quora Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.