title: Calling WCF service in Azure Functions
body: <p>Does anyone know how to configure a WCF service to be called from Azure Function?</p>
  
  <p>Scenario:</p>
  
  <ul>
  <li>I have a azure functions project.</li>
  <li>I have a core project which consists of controllers and mappers.</li>
  <li>This core project has a connected service configured.</li>
  <li>I have configured the endpoint and binding that work from a test project.</li>
  </ul>
  
  <p>But every time i call it from the functions i get:</p>
  
  <blockquote>
    <p>Could not find endpoint element with name 'ABC' and contract 'ABC' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this name could be found in the client element.</p>
  </blockquote>
  
  <p>Configuration for service:</p>
  
  <pre><code>  &lt;system.serviceModel&gt;
  &lt;bindings&gt;
    &lt;basicHttpBinding&gt;
      &lt;binding name="TranslationBridgeWebServiceSoap" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" useDefaultWebProxy="true"&gt;
        &lt;security mode="None" /&gt;
      &lt;/binding&gt;
    &lt;/basicHttpBinding&gt;
    &lt;customBinding&gt;
      &lt;binding name="TranslationBridgeWebServiceSoap12" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"&gt;
        &lt;textMessageEncoding maxReadPoolSize="64" maxWritePoolSize="16" messageVersion="Soap12WSAddressingAugust2004" writeEncoding="utf-8"&gt;
          &lt;readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /&gt;
        &lt;/textMessageEncoding&gt;
        &lt;security authenticationMode="UserNameOverTransport" allowInsecureTransport="false" /&gt;
        &lt;httpsTransport manualAddressing="false" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" allowCookies="false" authenticationScheme="Anonymous" bypassProxyOnLocal="false" decompressionEnabled="true" hostNameComparisonMode="StrongWildcard" keepAliveEnabled="true" maxBufferSize="65536" proxyAuthenticationScheme="Anonymous" realm="" transferMode="Buffered" unsafeConnectionNtlmAuthentication="false" useDefaultWebProxy="true" /&gt;
      &lt;/binding&gt;
    &lt;/customBinding&gt;
  &lt;/bindings&gt;
  &lt;client&gt;
    &lt;endpoint address="https://abc/TranslationBridgeExternalService.asmx" binding="customBinding" bindingConfiguration="TranslationBridgeWebServiceSoap12" contract="ABC" name="ABC" /&gt;
    &lt;endpoint address="https://abc/TranslationBridgeExternalService.asmx" binding="basicHttpBinding" bindingConfiguration="TranslationBridgeWebServiceSoap" contract="ABC" name="ABC" /&gt;
  &lt;/client&gt;
  </code></pre>
  
  <p></p>
  
  <p>Thanks for helping.</p>