Note that there are some explanatory texts on larger screens.

plurals
  1. POUnable to call soap web service using ksoap2 library
    primarykey
    data
    text
    <p>I am new to android and very new to soap web service calling. I am trying to call soap based web service using ksoap2 library but continuously getting error message </p> <blockquote> <p>java.io.IOException: HTTP request failed, HTTP status: 405</p> </blockquote> <p>But I am not able to understand why is it happening. I have searched over internet and could not found any solution to my problem.</p> <p>these are the fields I am using:</p> <pre><code>private static final String METHOD_NAME = "Authenticate"; private static final String SOAP_ACTION = "http://tempuri.org/IService1/Authenticate"; private static final String URL = "http://www.w3schools.com/webservices/tempconvert.asmx"; private static final String NAMESPACE = "http://tempuri.org/"; </code></pre> <p>This is the wsdl url: <a href="http://www.w3schools.com/webservices/tempconvert.asmx?WSDL" rel="nofollow">http://www.w3schools.com/webservices/tempconvert.asmx?WSDL</a></p> <p>This should be the request format: <a href="http://www.w3schools.com/webservices/tempconvert.asmx?WSDL" rel="nofollow">http://www.w3schools.com/webservices/tempconvert.asmx?WSDL</a></p> <p>I have tested this service with web service studio and got the following request and working fine.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-16"?&gt;&lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;&lt;soap:Body&gt;&lt;Authenticate xmlns="http://tempuri.org/"&gt; &lt;UserName&gt;test&lt;/UserName&gt; &lt;Password&gt;test&lt;/Password&gt; &lt;/Authenticate&gt;&lt;/soap:Body&gt;&lt;/soap:Envelope&gt; </code></pre> <p>I am trying to call this service using below code</p> <pre><code>request = new SoapObject(NAMESPACE, METHOD_NAME); request.addProperty("UserName","test"); request.addProperty("Password","test"); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER10); envelope.setOutputSoapObject(request); HttpTransportSE ht = new HttpTransportSE(URL); ht.call(SOAP_ACTION, envelope); </code></pre> <p>So please help me to get response from this service.</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. 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