+ Start a Discussion
SebastianSoancaSebastianSoanca 

SforceService problem

Hello ,

 

I have to create a solution that get all items form a SF entity. I generate an Enterprise WSDL file   from SalesForce account. After that i tried to create a console application that connect to SF . I added WSDL file as web reference but i have a problem when i try to use that sample code provided in help documentation.

Problem is that i can't find SforceService to create an object from it. Can anyone help me ? 

 

 private SforceService binding;
static private WalkthroughSample walkthroughSample;

 

 

Thank you. 

SuperfellSuperfell
You probably created a service reference, instead of a web service reference (the service reference is the default in VS.NET 2008, so its confusing, the web service reference is under the advanced button)
SebastianSoancaSebastianSoanca

Thank you, Simon.

 

That was the problem.

engrDaveengrDave

I have what I think is a related problem:

I am using VS2008 Pro, but target the .NET CF 2.0. As a result, there is no "Service Reference" menu item, but the "Add Web Reference..." is there.

 

When I load in the WSDL, I am unable to see the SforceService object anywhere, so I cannot set up SOAP binding.

Any ideas??