Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update WSDLC Documentation #317

Open
le-jaywha opened this issue Jun 28, 2023 · 0 comments
Open

Update WSDLC Documentation #317

le-jaywha opened this issue Jun 28, 2023 · 0 comments

Comments

@le-jaywha
Copy link

I have searched long and far to find out about the Uber JAR file used to generate the class definitions so that I can update picklist ValueSets via the Metadata API. The QuickStart for the Metadata API was using v30.0 with a slew of outdated JAR dependencies and classpath magic (had errors like "Could not find or load main class ?classpath") so I've had to find my way here. After a few more errors, including a JRE path overriding my JDK path, I ultimately had it working using Java 17.

tl;dr Pls update docs either here or on all the QuickStart pages that need the classes from the WSDL files.

Quick Walkthrough to Generate JAR Files

  1. Download your WSDL files from your Salesforce Org..
  2. Download the Uber JAR file; you can select ".." at the top to choose a different version if needed.
  3. Run the command below in PowerShell (Windows 11):
java -jar force-wsc-5x.0.0-uber.jar .\pathTo\metadata.wsdl .\outputPath\metadata.jar
  1. Profit; you have JARs 🤓
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant