Activity Forums Salesforce® Discussions What is WSDL and how can we trim WSDL in salesforce

  • What is WSDL and how can we trim WSDL in salesforce

  • Vikas Kumar

    December 28, 2016 at 2:27 pm

    Hi All,

    What is WSDL and how can we trim WSDL?


  • sushant

    January 5, 2017 at 11:47 am

    Hi Vikas

    Web Services Description Language (WSDL). This is the file that’s associated with SOAP. It provides a definition of how the Web service works, so that when you create a reference to it, the IDE can completely automate the process.

    You can either trim the WSDL or trim the resulting Apex class from the WSDL2Apex tool. I recommend the later, as the Apex compiler will warn you if you delete class that is referenced more easily. Start first by removing the static methods (representing the operations from the WSDL) you don't want. Then start by commenting out the inner classes within. Again the compiler will warn you about any types still referenced by the operations (methods) you've retained for you needs. Its a slow process.

    Hope this helps you


  • shariq

    September 15, 2018 at 6:22 pm


    Salesforce provides a WSDL (Web Service Description Language) files. They are called "Enterprise WSDL" and "Partner WSDL". A WSDL is an XML-document which contains a standardized description on how to communicate using a web service (the Salesforce API is exposed as a web service).

    The usual method is manual editing, although it should be possible to use the Eclipse IDE's WSDL editing mode  to trim out the extra functions that you don't need. You will still need to take care not to delete dependencies that are actually required, because Eclipse cannot validate what is or isn't necessary directly.

    User who is generating enterprise WSDL in your case has access to all the managed packages you are seeing in the wsdl. You should perform the export as the user that has the correct permissions.

    Hope it helps.

Viewing 1 - 3 of 3 posts

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos