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
Chad SaarChad Saar 

SalesForce.SforceService() does not work with a specific company Ent WSDL

I can run the same code with one Enterprise WSDL as a Web Reference and it works perfectly. If I run with another companies Enterprise WSDL file then it says "Unable to generate a temporary class (result=1). This is a critical line of code in order to perform any SalesForce integrations and comes right out of the documetation. There is a post on this subject but no one can seem to agree on what the problem is, some say it is bug, other link to expired articles, some say it requires a manual modification to the WSDL file.

Code
 
sfdcBinding = new SalesForceWebReference.SforceService();

 
ShashankShashank (Salesforce Developers) 
Adding reference to the post here: https://developer.salesforce.com/forums?id=906F0000000AiPEIA0