Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Use ksoap2, and check my answers with <b>code examples</b> at the following links: <a href="https://stackoverflow.com/questions/9023442/android-wsdl-web-service-ksoap2/9042267#9042267">Link1</a>,<a href="https://stackoverflow.com/questions/8968620/android-soapfault-error/9042499#9042499">link2</a>,<a href="https://stackoverflow.com/questions/9068161/android-calling-net-webservice-ksoap2/9074239#9074239">link3</a>. I wrote some details which will help you understand how to start coding. <br> let me know if u need help.</p> <p><b>UPDATE ( Answering your question about mapping and marshalling)</b> <br> u use addMapping when you are <b>Sending</b> a complex type ( ie an object) through the soap envelope. How will the webservice recognize the complex type ? u need to create locally a class that implement kvmserializable (as mentionned in my links) which will have same parameter as the object on the server, and then u need to <b>add mapping</b> between it and the class that maps to it on the server, so that the enveloppe when parsed on the server it knows this complex type <b>X</b> map to class <b>X</b> on the server. So if you are not Sending complex type, you don't need to add mapping.(<b>PS:I see that your not sending a complex type since nationalID is of type string. IF lets say nationalID was a complex type of type <b>Z</b> you would do : addMapping(NAMESPACE, Z.class.getSimpleName(), Z.class) </b>)</p> <p>As for marshalling, it uses java serialization to change Objects to stream of data to be unmarshalled on the web service. So when u are sending a complex type,based on my experience, it is a good practice to add marshalling to change the complex type to streams of data by serializing it. If you find that you don't need it just don't add it, but its always good to understand what are the options out there.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload