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
Sathishkumar Balakrishnan 3Sathishkumar Balakrishnan 3 

How do i get to SForceService using dotnet Core framework

Hi,
I am able to connect salesforce by using standard dotnet framework with web reference option. But, i am unable to connect SForceService by using dotnet core framework, i have added parter wsdl file using Connected service option, the methods are not exposed to access.

Please do the needful. 

Thanks in advance
Khan AnasKhan Anas (Salesforce Developers) 

Hi Satish,

Greetings to you!

Please refer to the below links which might help you further with the above requirement.

https://www.c-sharpcorner.com/UploadFile/kbpatel/integrating-salesforce-with-microsoft-net-C-Sharp/

http://www.ashishblog.com/integrating-salesforce-soap-api-using-c-net/

https://www.codeproject.com/Articles/886855/Salesforce-API-integration-with-ASP-Net-applicatio

https://developer.salesforce.com/page/Integrating_Force.com_with_Microsoft_.NET

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas

Sathishkumar Balakrishnan 3Sathishkumar Balakrishnan 3
Hi Khan Anas,

Thanks for the information.

Actually, i have developed the application already as you mentioned in links. But, it was with dotnet standard framework, i need a help on connecting with dotnet core framework.

Thanks,
Sathish
SheingSheing
Any update on this @Sathishkumar Balakrishnan 3 ? I am having problem accessing sforceservice in dotnet core as well.
pooja Abhangpooja Abhang
Hey Guys,

Any update on this? I am having similar issue and we are not able to resolve the same. 

Regards
Admin Administrator 11Admin Administrator 11
Hi Guys,

Any update on this? Even we are facing the same issue and not able to get the SForceService.
suresh ram 27suresh ram 27

Hi Guys,

Any update on this? Even we are facing the same issue and not able to get the SForceService in .net core 3.1

BlindsydeBlindsyde
Hello,

I am also looking for an answer to this. We tried to follow documentation (https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_calls_login.htm#topic-title) for login() and SforceService doesnt work in .NET Core 3.1, actually the namespace is there but the method is not. Looks like we are not the only ones looking for an answer here...

https://stackoverflow.com/questions/62080254/how-do-i-get-to-sforceservice-using-net-core-3-1-framework
SheingSheing
Hey guys, I was able to get this to work and figure I should help out the community a bit here.

I was able to use the Metadata & Partner WSDL after generating a reference.cs file via WCF tools, you can achieve it either by using VisualStudio (https://docs.microsoft.com/en-us/dotnet/core/additional-tools/wcf-web-service-reference-guide) or dotnet-svcutil (https://docs.microsoft.com/en-us/dotnet/core/additional-tools/dotnet-svcutil-guide?tabs=dotnetsvcutil2x) CLI. 

If you're using CLI like me, make sure you have the folder structure created correctly and add reference to the .csproj file.
Folder Structure should look like this:
Connected Services 
> Metadata Service

   >> ConnectedServcie.json 
   >> refrence.cs
>Partner Service
  >> ConnectedServcie.json 
  >> refrence.cs

In the csproj:
Add a new ItemGroup property under Project property:

<ItemGroup>
<WCFMetadata Include="Connected Services" />
</ItemGroup>

Hope this help =)