8000 Update WSDLC Documentation · Issue #317 · forcedotcom/wsc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Update WSDLC Documentation #317
Open
@le-jaywha

Description

@le-jaywha

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 🤓

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0