Is there a WSDL2Apex extension for Visual Studio Code, which would allow us to use a WSDL Url or file to generate Apex classes in our Visual Studio Code Salesforce DX project?

  • It went to opensource afaik, so you can make your own -- github.com/forcedotcom/WSDL2Apex – kurunve Sep 19 '18 at 10:39
  • @kurunve thanks. I was aware of WSDL2Apex. But I was hoping for a solution which is more integrated with Visual Studio Code – Robs Sep 19 '18 at 10:41
  • Do you want to regenerate the classes from the CLI, (which in turn could be automated from VSC)? It wouldn't be to difficult to rework my version of WSDL2Apex to support this. – Daniel Ballinger Sep 20 '18 at 2:51
  • @DanielBallinger yeah that would be great. If it could be called from the SFFX CLI and VS Code command palette :) – Robs Sep 20 '18 at 7:32

There is the existing SFDX plugin from Wade Wegner - wadewegner/sfdx-wsdl2apex-plugin. That will give you CLI level access to the Java implmentation for WSDL2Apex.

You could combine that with a custom Visual Studio Code extension to expose it in the command palette.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.