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
DoubleheadSoftwareDoubleheadSoftware 

Consuming Dot.Net Service with ChannelFactory

I am trying to consuming a Dot.Net WCf web service.  I have been able to import the WSDl using the WSDl import tool .  The service was setup using the Channel Factory method to call the service.  The Channel Factory class was not imported with the WSDl import.  Is this possible in Saleforce?  This is a sample client using a Dot.Net client

 

const string apiKey = "89D7C85C-3B7B-4671-998C-6878C48FF6E6";

var channelFactory = new ChannelFactory<IOnboardingService>("onboardingService");

var client = channelFactory.CreateChannel();

var context = new OnboardingContext();

 

context.AccountName = "SAI";

context.FirstName = "John";

context.LastName = "Doe";

// ... fill in the data ...

 

var response = client.Call(new Request() { ApiKeyID = apiKey, Context = context });