2

I was following these steps: https://developer.salesforce.com/page/Integrating_Force.com_with_Microsoft_.NET

I downloaded the enterprise wsdl and added the service reference. When I try to access the SforceService it does not exist.

I am using VS 2013. Has anyone else gotten this to work?

3 Answers 3

4

Mentioning below step by step guide with screen shots to connect .NET console application with Salesforce.

https://cloudvista.wordpress.com/2015/07/21/connecting-net-console-application-to-salesforce-via-enterprise-wsdl/

Generally the issue is in adding service reference.It you're unsure, try deleting the reference and adding it again. If it is added succesfully, you'll get screen like this: enter image description here

Also note while adding reference, you've to follow path like this in Visual Studio :

Project Name | Right click 'Add' | Service referece | Advanced | Add Web Reference This will land you screen like above screen shot.

Revert in case of any further doubt.

0
1

Chances are if you use the stock Enterprise WSDL using a web reference or service reference from Visual Studio you will encounter a .NET XmlSerializer issue related to the unbounded ListViewRecord element.

I've written about it with respect to the Partner API in Importing the Salesforce Winter 15 Partner API to .NET. There is also a specific Knowledge Article about the same problem - "Unable to generate a temporary class (result=1)" is returned when .Net integration tries to parse the Enterprise WSDL version 32.0.

Are you encountering any compile errors with the generated classes?

1

You can add either a .NET 2.0 style Web reference, or a .NET 3.0 style Service reference, depending on your version of Visual Studio and preferred developer environment. A .NET 3.0 style reference uses services like SoapClient instead of SforceService.

reference : https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_quickstart_steps_import_wsdl.htm

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .