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
svidyansvidyan 

Modifying generated WSDL

Hi,

 

I am writing apex code to create webservices.

 If I pass an sObject as an argument, the generated WSDL generates all the related fields of the object.

 

Is it possible to modify the generated WSDL to only include the relevant fields and still make it valid?

 

My question is , can I tweak the generated WSDL and force.com will still accept the modified WSDL when a client call into it?

 

thanks

svidyan

sfdcfoxsfdcfox

You can remove unnecessary fields from the SObject in the WSDL. Your program will not be able to access those fields, and will not be able to "see" those fields if included in a query. However, webservice methods have no problem with missing parameters, as those will be set to "null" values inside the Apex Code.