function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
BaloodevilBaloodevil 

Problem getting Metadata API working

I am trying to work with the salesforce metadata programmatically.  I created a new java project with the sample code listed here.

I downloaded the Enterprise WSDL and Metadata WSDL, then used WSC to create java proxy classes.  Then I included those jars in my project using Eclipse (SpringSource Tool Suite to be precise).  Including those resolved *almost* all the import references in the sample code, except...

 

 

import com.sforce.ws.ConnectorConfig;
import com.sforce.ws.ConnectionException;
I tried downloading the delegated authentication WSDL as well, but that didn't resolve these imports.  Where are these classes coming from?  A WSDL or something else?
Thanks in advance.

 

Best Answer chosen by Admin (Salesforce Developers) 
SuperfellSuperfell

from wsc-{version}.jar

All Answers

SuperfellSuperfell

from wsc-{version}.jar

This was selected as the best answer
BaloodevilBaloodevil

Hi Simon,

Thanks for your response.  I was using the wsc-20.jar to generate the jars from the wsdls.  I didn't realize I also needed to include a reference to wsc-20.jar in the project.