Note that there are some explanatory texts on larger screens.

plurals
  1. PONot able to get response from a third party web service
    primarykey
    data
    text
    <p>I am trying to use QAS web services for postcode lookup in UK. When I am posting my request XML, it says "Server did not recognize the value of HTTP Header SOAPAction: DoSearch."</p> <p>When I remove mMethod.setRequestHeader("SOAPAction", "/DoSearch"); from my SOAPClient, the error then received is Unable to handle request without a valid action parameter. Please supply a valid soap action.</p> <p>The link to WSDL is: <a href="https://ws.ondemand.qas.com/ProOnDemand/V3/ProOnDemandService.asmx?WSDL" rel="nofollow">https://ws.ondemand.qas.com/ProOnDemand/V3/ProOnDemandService.asmx?WSDL</a></p> <p>I guess promlem is that I am not being able to set the action parameter in the header, but I dont have any clue on how to do so, and I am kind of stuck. Please help.</p> <p>The request XML which I am trying to post is:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&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" xmlns:qas="http://www.qas.com/OnDemand_2011-03"&gt; &lt;soap:Header&gt; &lt;qas:QAAuthentication&gt; &lt;qas:Username&gt;username&lt;/qas:Username&gt; &lt;qas:Password&gt;password&lt;/qas:Password&gt; &lt;/qas:QAAuthentication&gt; &lt;/soap:Header&gt; &lt;soap:Body&gt; &lt;QASearch RequestTag="Single Line postcode search" xmlns:web="http://www.qas.com/OnDemand_2011_03"&gt; &lt;web:Country&gt;GBR&lt;/web:Country&gt; &lt;web:Engine Flatten="true "&gt;Singleline&lt;/web:Engine&gt; &lt;web:Layout&gt;QADefault&lt;/web:Layout&gt; &lt;web:Search&gt;B168JR&lt;/web:Search&gt; &lt;/QASearch&gt; &lt;/soap:Body&gt; &lt;/soap:Envelope&gt; </code></pre>
    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.
    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