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
pureyangpureyang 

Possible to load Enterprise WSDL dynamically?

I have a project that requires usage of the SOAP API and we have a requirement to dynamically load the list of fields on our custom object (lets call it Article__c).

 

From my understanding if tomorrow we add a field, lets say VoteCount this means we will need to redownload enterprise.wsdl and use WSC to generate a new enterprise.jar, recompile. 

 

 

One possible solution might be to scrap this UR: https://instance.salesforce.com/soap/wsdl.jsp?type=*

Has anyone tried this?

 

Help/Insight, much appreciated.

 

Thanks,

-yang

Best Answer chosen by Admin (Salesforce Developers) 
SuperfellSuperfell

Wny don't you use the partner API instead it was designed to handle more dynamic cases like this.

All Answers

SuperfellSuperfell

Wny don't you use the partner API instead it was designed to handle more dynamic cases like this.

This was selected as the best answer
pureyangpureyang

Whao Thanks!

Partner WSDL combined with Metadata API should do the trick.

 

Thanks for pointing me in the right direction.