Steps to generate Client JAR from WSDL –
1. Ensure
tools.jar under C:\Program Files\Java\jre\lib
2. Place
below JAR files in one folder (Any location)
a. force-wsc-30.0.0.jar
b. ST-4.0.8.jar
3. Place
WSDL file in same folder where above JAR files are placed.
4. Open
command prompt and navigate to the path where above files are placed.
5. Mention wsdl name and target jar file name
in below command and run on command prompt
java -classpath force-wsc-30.0.0.jar;ST-4.0.8.jar
com.sforce.ws.tools.wsdlc .\wsdl.jsp.xml
.\Enterprise.jar
6. Now we can use this jar file in our applications.
0 comments:
Post a Comment