Salesforce .net API integration

Jacques picture Jacques · Apr 20, 2011 · Viewed 7.7k times · Source

I'm a little confused. We downloaded the WSDL file from Salesforce and created a web reference to it using a file path as suggested. It created what I understood to be the proxy classes, but not the SforceService class.

Someone else suggested that you have to use the WSDL.exe to generate the class file which I did and it now works.

What I don't understand is why?

Didn't the process of created a web reference configure the proxies as needed? Why the extra step?

Any advice?

Answer

superfell picture superfell · Apr 20, 2011

The SforceService class is only generated if you do add web reference (from the advanced button on add service reference dialog) if you do add service reference, you get a different set of objects, and a different programming model.

All the .NET samples on the salesforce site use the add web reference style proxies, but if you'd rather use the WCF (aka service reference) style stuff instead, that's fine too.