1

Is there an endpoint to retrieve the enterprise WSDL file via salesforce (SOAP) API?

All I found is the option to retrieve it via standard curl request but I would expect that there is an official way to retrieve the wsdl file automatically. I don't want to download the WSDL file manually via setup page.

1 Answer 1

1

There isn't a SOAP API to retrieve the Enterprise WSDL. That would be a bit circular, as the Enterprise WSDL itself is for the SOAP API.

The CURL instructions that you linked to are about as good as you are going to get. Basically, you need to make a GET request to /soap/wsdl.jsp?type=*. The request needs to be authenticated with a valid SessionId via the sid cookie. You will be more or less screen scraping the Enterprise WSDL from Salesforce.

One suggestion - if you are expecting sufficient changes to the Enterprise WSDL that you will need to automate handling those changes you may be better served by the Partner WSDL. The partner WSDL is dynamic and will adjust automatically to any changes in the target orgs Metadata.

1
  • Thank you, this worked fine for me! I choosed a mixture of SOAP API (log in and save returned cookie) and CURL (using cookie returned by SOAP API).
    – Franziska
    Jun 13, 2019 at 15:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .