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
Lisa SchutterLisa Schutter 

Update apex class with WDSL?

We have generated apex classes with a WDSL file. Now I would like to update those classes, what is the best way of doing this?

I am now thinking of deleting the classes in the sandbox and uploading them there again and then deploy to production. 
 
AnudeepAnudeep (Salesforce Developers) 
Hi Lisa - Yes you can modify the WSDL generated apex classes

After you click on Generate Apex. The final page of the wizard shows which classes were successfully generated, along with any errors from other classes. The page also provides a link to view successfully generated code. You can access code from there or from locating it based on the name from setup and make modifications

I recommend using this tool to make any modifications to the code. You are less likely to run into errors when using this tool

If you find this information helpful, please mark this answer as Best. It may help others in the community. Thank You!

Anudeep