Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Try to add the Following</p> <pre><code>soapEnvelope.dotNet = true; </code></pre> <p>If it is not working can you post your WSDL file?</p> <pre><code>[ServiceContract(Namespace = "http://Microsoft.ServiceModel.Samples")] public interface ICalculator { [OperationContract] string testSoapFunction(); } final String NAMESPACE = "http://Microsoft.ServiceModel.Samples"; final String SOAP_ACTION = "http://Microsoft.ServiceModel.Samples/ICalculator/testSoapFunction"; final String METHOD_NAME = "testSoapFunction"; httpTransport = new HttpTransportSE(url, 2000); SoapSerializationEnvelope soapEnvelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); httpTransport.debug = true; //soapEnvelope.implicitTypes = true; soapEnvelope.dotNet = true; SoapObject soapReq = new SoapObject(NAMESPACE, METHOD_NAME); soapEnvelope.setOutputSoapObject(soapReq); try { httpTransport.call(SOAP_ACTION, soapEnvelope); Log.d("REQ" , httpTransport.requestDump); Log.d("RES" , httpTransport.responseDump); Object retObj = soapEnvelope.bodyIn; Log.d("TEST" , retObj.toString()); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (XmlPullParserException e) { // TODO Auto-generated catch block e.printStackTrace(); } </code></pre> <p>Soap Req:</p> <pre><code>&lt;v:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:d="http://www.w3.org/2001/XMLSchema" xmlns:c="http://schemas.xmlsoap.org/soap/encoding/" xmlns:v="http://schemas.xmlsoap.org/soap/envelope/"&gt; &lt;v:Header /&gt; &lt;v:Body&gt; &lt;testSoapFunction xmlns="http://Microsoft.ServiceModel.Samples" id="o0" c:root="1" /&gt; &lt;/v:Body&gt; &lt;/v:Envelope&gt; </code></pre>
 

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