Answer the question
In order to leave comments, you need to log in
How to correctly call a service from Workflow?
Tell me how to correctly call the service from Workflow. I have an Activity with a FlowChart and also have 2 services (ASP.NET and WCF). When I add links to these services, everything works fine, I even see the Activity of these services in the elements panel and I can drag them, set parameters, etc., but when I start Workflow, an error occurs when the service is called:
Could not find endpoint element with name {0} and contract {1} in the ServiceModel client configuration section
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IGetCoefficientsService" />
<binding name="Service1Soap" />
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost/L4/GetCoefficientsService.svc"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IGetCoefficientsService"
contract="IGetCoefficientsService" name="BasicHttpBinding_IGetCoefficientsService" />
<endpoint address="http://localhost/L3/Service1.asmx" binding="basicHttpBinding"
bindingConfiguration="Service1Soap" contract="Service1Soap"
name="Service1Soap" />
</client>
</system.serviceModel>
</configuration>
Answer the question
In order to leave comments, you need to log in
Found a solution... You need to copy the system.serviceModel section from Workflow's app.config to the app.config of the host application.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question