Note that there are some explanatory texts on larger screens.

plurals
  1. POWCF Complex Web Service Access Android
    primarykey
    data
    text
    <p>I have problem accessing a complex WCF web service in Android. The details about my question are as follows:</p> <p>A typical request to the WCF Web Service has the following XML:</p> <pre class="lang-xml prettyprint-override"><code>&lt;s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"&gt; &lt;s:Header&gt;&lt;Action s:mustUnderstand="1"xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none"&gt;http://tempuri.org/manojService/MethodName&lt;/Action&gt; &lt;/s:Header&gt; &lt;s:Body&gt; &lt;MethodName xmlns="http://tempuri.org/"&gt; &lt;name&gt;ABC&lt;/name&gt; &lt;Collection xmlns:d4p1="http://schemas.datacontract.org/2004/07/YXZ.Model" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"&gt; &lt;d4p1:location&gt;whatever&lt;/d4p1:location&gt; &lt;d4p1:OfficeLocation&gt; &lt;d4p1:Lattitude&gt;28.5&lt;/d4p1:Lattitude&gt; &lt;d4p1:LocationID&gt;0&lt;/d4p1:LocationID&gt; &lt;/d4p1:OfficeLocation&gt; &lt;/Collection&gt; &lt;Action&gt;Add&lt;/Action&gt; &lt;/MethodName&gt; &lt;/s:Body&gt; &lt;/s:Envelope&gt; </code></pre> <p>I am using simple SOAP concept for login using KSoap library as below:</p> <pre><code>try { StringBuilder sb = null; SoapObject request = new SoapObject("http://tempuri.org/", "methodName"); request.addProperty("name", "aaaa"); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.dotNet = true; envelope.setOutputSoapObject(request); HttpTransportSE androidHttpTransport = new HttpTransportSE( "Service urls"); androidHttpTransport.call("http://tempuri.org/manojService/MethodName", envelope); Object result = (Object) envelope.getResponse(); String resultData = result.toString(); System.out.println("result Data :-" + resultData); } catch (Exception e) { // TODO: handle exception e.printStackTrace(); System.out.println("error is occured :-" + e.getMessage()); } </code></pre> <p>If you have any solutions for sending the data of array type in soap then please let me know.</p>
    singulars
    1. This table or related slice is empty.
    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.
 

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