Activity › Forums › Salesforce® Discussions › What is WSDL and how can we trim WSDL in salesforce
Tagged: Salesforce Development, Salesforce WSDL, WSDL File
-
What is WSDL and how can we trim WSDL in salesforce
Posted by Vikas Kumar on December 28, 2016 at 2:27 PMHi All,
What is WSDL and how can we trim WSDL?
thanks
shariq replied 7 years, 8 months ago 3 Members · 2 Replies -
2 Replies
-
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
Thanks
- [adinserter block='9']
-
Hi,
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.
Log In to reply.