To get started with the Metadata API, follow these steps:
1. In the App Setup area, click Develop, API.
2. Right-click the Download Metadata WSDL link and save it on your local file system. You’ll need this plus the Enterprise WSDL in order to call the Metadata API.
3. Generate stub code from the WSDL (for example, by using WSC as described in Chapter 10) and add it to your project.
Listing 11.18 demonstrates usage of the Metadata API in Java by creating a new database object given a name and its plural name. The code assumes the existence of a member variable called
sessionId, previously populated from the
LoginResult. It prepares the minimum set of metadata required to call the
create service, ...