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
stalbertstalbert 

Is there a .NET SalesForce web services client library?

I looked for, but could not find anyone doing a WCF-based salesforce client library.

 

We've started creating one but surely there have been many robust client libraries for .NET integration to SalesForce built over recent years? Where can I find such a thing?

 

By way of example, here are a couple features I'd like to see:

 

- Automatic handling of login()

       don't make me have to include calls to login/logout in my application code. Login could be implicit, and credentials encapsulated safely somewhere by the library.

- Automatic setting fields to null

      let me write natural c# code like below to set a field null.

Account.Foo = null;

- Give me simplified APIs, and how about generics

// returns a strongly typed contact by id
sflibrary.Get<Contact>(id); 

// inserts a single contact, returns a single result - no messing
// with collections in our out of the method.
result = sflibrary.Insert(contact); 


 

- or setting optional properties (aka set property "foo" on an object without needing to set "fooSpecified".

// this
Account.SomeDate = DateTime.Now;

// instead of
Account.SomeDate = DateTime.Now;
Account.SomeDateSpecified = true;

 

 

The list goes on... Is there anything like this out there, or am I just wishful thinking?

danaledanale

Hi Stalbert,

 

As far as I know, there is not a .NET specific salesforce web services library. I've written a couple of small integrations with .NET and have always used the Partner WSDL.

 

If you do end up writing a library, be sure to share! That would be immensely useful to tons of people, I'm sure.

Thanks!