forcedotcom / forcedotcom/wsc

Update WSDLC Documentation

Open
#317 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
276
Forks
223
PR merge metrics
No merged PRs in 30d

Description

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.](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_quickstart_get_WSDLs.htm).
2. [Download the Uber JAR file; you can select ".." at the top to choose a different version if needed.](https://repo1.maven.org/maven2/com/force/api/force-wsc/58.0.0/)
3. Run the command below in PowerShell (Windows 11):
```ps1
java -jar force-wsc-5x.0.0-uber.jar .\pathTo\metadata.wsdl .\outputPath\metadata.jar
```
4. Profit; you have JARs 🤓

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.