Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Set Up Your Client Application
- Browse to http://mvnrepository.com/artifact/com.force.api/force-wsc or https://repo1.maven.org/maven2/com/force/api/force-wsc/
- Navigate to the version of WSC that matches the API version you’re using.
- Click force-wsc-XX.X.X-uber.jar, and save the file to a local directory.
The Bulk API doesn’t provide a login operation, so you must use the SOAP API to login.
To download the partner WSDL and compile it to Java classes with the WSC toolkit:
- Log in to your Developer Edition Salesforce account. You must log in as an administrator or as a user who has the “Modify All Data” permission. Logins are checked to ensure they are from a known IP address. For more information, see Security and the API in the SOAP API Developer Guide.
- From Setup, in the Quick Find box, enter “API”, then select API.
- Right-click Partner WSDL to display your browser's save options, and save the partner WSDL to a local directory.
- Compile the partner API code from the WSDL using the WSC compile
tool:
1java -classpath pathToJar\force-wsc-XX.X.X-uber.jar com.sforce.ws.tools.wsdlc pathToWSDL\wsdlFilename .\wsdlGenFiles.jarFor example, if force-wsc-XX.X.X-uber.jar is installed in C:\salesforce\wsc, and the partner WSDL is saved to C:\salesforce\wsdl\partner:
1java -classpath C:\salesforce\wsc\force-wsc-XX.X.X-uber.jar com.sforce.ws.tools.wsdlc C:\salesforce\wsdl\partner\partner.wsdl .\partner.jarforce-wsc-XX.X.X-uber.jar and the generated partner.jar are the only libraries needed in the classpath for the code examples in the following sections.