5

It seems that there is a loose typed WSDL for SOAP API - Partner WSDL

Is there something similar for Metadata API or can I get a WSDL for Metadata API programmatically?

1 Answer 1

4

Yes - you can download the Metadata API WSDL by logging in to your org and clicking Your Name | Setup | Develop | API | Metadata WSDL - see the documentation on Downloading Salesforce WSDLs and Client Authentication Certificates for more details.

There is no supported mechanism to get the Metadata API WSDL programmatically, but since the WSDL does not change across orgs (see superfell's comment below), just download it interactively and you should be good to go.

7
  • that'll work, but remember that its not supported, the UI is not an API
    – superfell
    Sep 24, 2012 at 18:55
  • @superfell Since when did I ever worry about supportability ;-)
    – metadaddy
    Sep 24, 2012 at 18:58
  • @metadaddy is it possible to do the same with OAuth token? I tried issuing similar request but with Authorization header set to OAuth <token> and I got back a redirect response to a login page. Sep 24, 2012 at 19:08
  • 3
    Its been a long time since i looked at the metadata WSDL, but i'm pretty sure it doesn't change based on the org, so there's no real need to be able to programmatically access it.
    – superfell
    Sep 24, 2012 at 19:27
  • As @superfell says, the metadata WSDL doesn't change across orgs, so grab it once via the UI and you should be good.
    – metadaddy
    Sep 24, 2012 at 19:33

You must log in to answer this question.

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