+ Start a Discussion

405 GET not supported

I am getting this error when going to http://www.salesforce.com/servlet/servlet.SoapApi

I am using C#, and I would like to reference salesforce.com in my project, but I continualy get "405 GET not supported" error.

Any ideas?


Hi WhiZa,

In visual studio click Project/Add Web Reference.  In the dialog enter http://www.sforce.com/wsdl .  If you want you may change the name from com.sforce.www to something like sforce.  Click the Add Reference button.


Thanks Dave,

But I would like to access my company's account on salesforce.com, not sforce.com. Is there something I'm missing?


Hi WhiZa,

You will need to obtain the wsdl from sforce.  sforce.com has no notion of providing any kind of application functionality.  The wsdl that you get from sforce is what you will need to access your account in salesforce.com.  Please download one or two of the C# samples to get a better idea of what is required and how to go about it.


I'm dumb. I just had to login with my company's account and it worked. Thanks Dave. You're doing a great job




javax.xml.rpc.ServiceException: modeler error: failed to parse document at "https://login.salesforce.com/services/Soap/c/28.0/00590000001eXtVAAU": java.io.IOException: Server returned HTTP response code: 405 for URL: https://login.salesforce.com/services/Soap/c/28.0/00590000001eXtVAAU


I'm using webservices and i'm getting above exception when i try to use handlers to fetch Soap messages. 

Any Ideas