Preface – This post is part of “Salesforce Integration with SOAP API” series.
In my previous posts, I have explained basics of SOAP API and WSDL. If you are not familiar with these concepts, I would request you to please check the posts @
Salesforce Integration with SOAP API – Part 1 – Introduction to SOAP Protocol
Salesforce Integration with SOAP API – Part 2 – Introduction to WSDL and Salesforce’s Approach
Now here I will show step by step approach to configure eclipse IDE with Enterprise WSDL.
Step 1 –
Download WSDL from Salesforce Org by going to the below links –
Setup | Build | Develop | API and then click on Generate Enterprise WSDL, followed by click on Generate button. It will open an XML file. You need to save the XML in your hard drive as enterprise.wsdl
Step 2 –
Here you need to download the Force.com Web Service Connector (WSC) from WSC project’s download page.
So download wsc-23.jar from the above location and save it to the same folder where you have saved enterprise.wsdl in the previous step.
Step 3 –
In this step you need to create the executable jar. The command is as below –
java -classpath wsc-23.jar com.sforce.ws.tools.wsdlc enterprise.wsdl enterprise.jar
This will create an executable jar named enterprise.jar in the same folder. Screenshot attached.
Step 4 –
Now you can create java project in Eclipse IDE and add the below jars to the build path –