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
Alex Williams 22Alex Williams 22 

What is the URL for the salesforce API calls?

Hello, 
I am new to salesforce development and I am trying to fetch the API call from a sandbox which I am using to create an app for a company. When I reference to the link (after the wsdl file has been genorated) I get the following page:
User-added image
When infact I am expecting to see this page here:
User-added image
Subsequently this is causing my SforceService command to fail, are there any obvious mistakes I am making and can someone point me in the right direction! This is a Partner API btw.
Kindly
~Alex 
Karthik KKarthik K
Hope you are trying to utilize SOAP API. Can you try to navigate to Setup -> API 
There you can find different types of WSDL. Choose the one that fits your needs. 

User-added image
Alex Williams 22Alex Williams 22
Karthik, I am using the partner WSDL and I have tried both using the web link as well as the downloaded xml file. Both return the exact same problem. The actual error that I am trying to get ride of is the following:
User-added image
and the reference which I am using this in is just to try and connect to the sandbox that I have setup for testing. It crashes to that error on this line of code. 
SfdcBinding = new SforceService();
I am coding it in C# and the variable for SfdcBinding is defined as this:
SforceService SfdcBinding = null;

Any ideas from here? This has so far completly stopped me in my tracks!