function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Rathna DeshmukhRathna Deshmukh 

GET not supported error when trying to do query using REST API

Hi,

Please advise.I am trying to test query operation of REST API using SOAP UI.I am getting below error:
<h2>HTTP ERROR 405</h2>
      <p>
         Problem accessing /services/Soap/c/31.0/query/. Reason:
         <pre>GET not supported</pre>
      </p>
      <hr/>
      <i>
         <small>Powered by Jetty://</small>

In the SOAP UI,I am manually adding header with name "Authorization" with value of sessionID.Below us the url I am trying for query

https://instance.salesforce.com/services/Soap/c/31.0/query/?q=SELECT ID,name from Account

Are there any samples,if yes please provide the link and advise.Thanks in advance!!
Sam Jacob 4Sam Jacob 4
REST and SOAP are two different things, if using REST API, then the URL should look like 
..../services/data/v31.0/query/
Raghu Reddy 14Raghu Reddy 14
Hi Rathna,

Check this 

https://developer.salesforce.com/page/Getting_Started_with_the_Force.com_REST_API




/Raghu