Monday, January 26, 2015

How to convert Salesforce WSDL to JAR files

Salesforce provides different APIs like Enterprise,Metadata,Partner or our own  Custom Apex WSDL etc.
To convert WSDL to JAR files salesforce provides an API called WSC(Web service connector).
The below is the command to convert WSDL to JAR file.

You can download wsc.jar and its dependencies from below path and make sure java is installed and classpath is set.

http://mvnrepository.com/artifact/com.force.api/force-wsc/29.0.0


java -classpath D:\Jars\force-wsc-32.1.0.jar;D:\Jars\ST4-4.0.8.jar;D:\Jars\appengine-api-1.0-sdk-1.9.10.jar;D:\Jars\antlr-runtime-3.5.2.jar com.sforce.ws.tools.wsdlc D:\Jars\metadata.wsdl D:\Jars\metadata.jar


Regards,
Naveen
http://www.autorabit.com

No comments:

Post a Comment