A
A
Alexander Kosheverov2013-12-25 19:26:26
ASP.NET
Alexander Kosheverov, 2013-12-25 19:26:26

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

Although everything was automatically registered in app.config:
<?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>

Tell me, what could be the problem?
PS Services work properly, checked from under client applications.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Kosheverov, 2013-12-25
@Iworb

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 question

Ask a Question

731 491 924 answers to any question