Notifications
Announcements
No record found.
Hi
I have wcf service in local ( localhost ) and how to consume in custom workflow in MS CRM onpremise.
Many thanks :)
*This post is locked for comments
Hi,
You can make a custom workflow activity to call your service using WCF.
See https://msdn.microsoft.com/en-gb/library/gg334455.aspx?f=255&MSPPError=-2147217396
If you are on prem - make sure that you don't register your workflow plugin in Sanbox isolution mode since this will restrict access to services such as localhost and prevent you from using WCF bindings other than Basic HTTP.
Hope this helps
Hi Mclare,
To do that, you just follow these steps:
Step 1: Build and Publish the WCF Service
Step 2: Deploy the WCF Service
Step 3: Create WCF client
But plugin or custom activity does not support to access third party dll in ISolation mode.
And you should manual binding your service like below code:
GenerateServiceClient()
{
Service1Client client = null;BasicHttpBinding myBinding = new BasicHttpBinding();myBinding.Name = "BasicHttpBinding_IService1";myBinding.Security.Mode = BasicHttpSecurityMode.None;myBinding.Security.Transport.ClientCredentialType = HttpClientCredentialType.None;
myBinding.Security.Transport.ProxyCredentialType = HttpProxyCredentialType.None;
myBinding.Security.Message.ClientCredentialType = BasicHttpMessageCredentialType.UserName;
EndpointAddress endPointAddress = new EndpointAddress("Your endpoint address");
client = new Service1Client(myBinding, endPointAddress);
return client;
}
Step 4: Call your WCF form plugin/custom activity
Hi Scott , Thanks alot . the link you have provided is not working . Can you provide correct url
Sorry about that - I've updated the link.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
SA-08121319-0 4
Calum MacFarlane 4
Alex Fun Wei Jie 2