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
vino2vijayvino2vijay 

405 GET not supported, this is a SOAP service, please use POST

I have created simple webservice . once i generated the WSDL file , i got like this URL like this 

 

<soap:address location="https://ap1-api.salesforce.com/services/Soap/class/HelloWorldWebService"/>

 

While i m trying to hit that URL from browser i got error like this 

 

405 GET not supported, this is a SOAP service, please use POST

 

Can anyone please let me know the ans ?

 

Thanks in advance .....

Best Answer chosen by Admin (Salesforce Developers) 
SuperfellSuperfell

You would have to make a soap request to the URL, checkout the SOAP UI tool if you just want to try it in an interactive fashon.

All Answers

SuperfellSuperfell

As the error message mentions SOAP APIs only use the HTTP POST verb, not GET (which is what your browser used), what are you expecting to see when you put the URL in your browser ?

vino2vijayvino2vijay

Hi ,

I just wanna see my output from my webservice method. thats it my anticipated ... It would be great can u please let me know the solution.

FYI

I have using below code :

 

global class HelloWorldWebService {
    webservice static string sayHello(String h) {
    h = 'Hello World!';
    return h;
    }
}

 

Where would i see my output message "Hello World!"; ???

 

 

Thanks,

Vinoth

 

SuperfellSuperfell

You would have to make a soap request to the URL, checkout the SOAP UI tool if you just want to try it in an interactive fashon.

This was selected as the best answer
vino2vijayvino2vijay

Hey Simon,

I got it , Sorry for asking simple questions ;)

 

Thank u :)

Mustafa JhabuawalaMustafa Jhabuawala
@vino2vijay

Please provide the solution
Mustafa JhabuawalaMustafa Jhabuawala
I am using following method, but got this error '405 GET not supported, this is a SOAP service, please use POST'

global PageReference sample() {
        PageReference pgref = new PageReference('http://www.google.com');
        pgref.setRedirect(false);
        return pgref;
    }

Please help