mteece / salesforce-dotnet

Automatically exported from code.google.com/p/salesforce-dotnet
0 stars 0 forks source link

zip download is missing SForceService.cs #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
zip download is missing SForceService.cs

Original issue reported on code.google.com by benA...@googlemail.com on 8 Sep 2009 at 1:56

GoogleCodeExporter commented 9 years ago
Ben you need to create the SForceService.cs from the wsdl file using the 
WSDL.exe.
Please check the notes. But probably where I got stuck is after that when the 
Wrapper
didn't compile. It didn't recognize the accounts etc. I think the Wrapper is 
WSDL
specific.

Original comment by sundaram...@gmail.com on 15 Sep 2009 at 2:51

GoogleCodeExporter commented 9 years ago
Log in to your Salesforce account (can be developer or company). Go to Setup >
Develop > API. In the main screen you will see Enterprise WSDL; click Generate
Enterprise WSDL.

This will generate the WSDL for you. You will have to save the file locally. 
Save it
in your VS project somewhere. Next in VS just open your project up, Add Web
Reference, and just enter the path to the WSDL like
C:\Projects\SalesforceExample\example.wsdl (don't worry that it is not a URL). 
Once
that is all set just make sure to name the web reference as something like
com.salesforce.soap or whatever.

I ended up just ended up adding it to my using statements within the project 
like
"using com.salesforce.soap;" so I could access Leads, Accounts, and so on.

Original comment by mteece@gmail.com on 21 Sep 2009 at 8:00

GoogleCodeExporter commented 9 years ago
The missing piece of advice here is _how_ to generate the SForceService.cs file
especially if wsdl.exe is not currently on your system. I did the following:

1) Download the wsdl file from Salesforce (Login | Setup | App Setup | Develop 
| API)

2) run wsdl.exe (if you don't have wsdl.exe and your system is up-to-date, 
download
the "Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1" to get it
"http://www.microsoft.com/downloads/details.aspx?familyid=71DEB800-C591-4F97-A90
0-BEA146E4FAE1&displaylang=en")
Examples:
"wsdl /language:CS /out:SforceServices.cs
http://hostServer/WebserviceRoot/WebServiceName.asmx?WSDL"
"C:\Program Files\Microsoft SDKs\Windows\v7.0\Bin\wsdl.exe" /language:CS /ou
t:SforceService.cs "\\server\Users\your.name\Visual Studio 2008\WebSit
es\enterprise.wsdl"

3) Copy the resulting file into the Core of the salesforce-dotnet application

Original comment by porter.ea@gmail.com on 7 Oct 2009 at 6:09

GoogleCodeExporter commented 9 years ago
@porter.ea: I have updated the Quick Start at the project start page with your 
text. Is 
it more correct?

Original comment by stiansol@gmail.com on 11 Oct 2009 at 11:39

GoogleCodeExporter commented 9 years ago
It is a little confusing as shown. I don't seem to be able to edit the home 
page, but
would format the examples like this:
          Examples:
          * For URI: wsdl /language:CS /out:SforceService.cs
http://hostServer/WebserviceRoot/WebServiceName.asmx?WSDL 
          * For local file: "C:\Program Files\Microsoft
SDKs\Windows\v7.0\Bin\wsdl.exe" /language:CS /out:SforceService.cs
"\\server\Users\your.name\Visual Studio 2008\WebSites?\enterprise.wsdl" 

Thanks.

Original comment by porter.ea@gmail.com on 21 Oct 2009 at 9:34

GoogleCodeExporter commented 9 years ago
I have updated the front page with your changes.
I regards this issue as Done.
-Stian

Original comment by stiansol@gmail.com on 22 Oct 2009 at 6:04