0

When I follow the link the example it gives me

class Test
{
    static void Main()
    {
    InternalCommunicationClient client = new InternalCommunicationClient();

    // Use the 'client' variable to call operations on the service.

    // Always close the client.
    client.Close();
    }
}

But when I copy this code into a console, the InternalCommunicationClient requires (InstanceContect callback) as a parameter.

I have done wcf 2 years ago and this wasn't there back then. please help

Here is the web.conf code

<system.serviceModel>
<behaviors>
  <serviceBehaviors>
    <behavior name="">
      <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
      <serviceDebug includeExceptionDetailInFaults="true" />
    </behavior>
  </serviceBehaviors>
</behaviors>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" >
<services>
  <service name="Workflowms.Web.webservices.Internalcommunication.InternalCommunication">
    <endpoint address="" binding="wsDualHttpBinding" contract="Workflowms.Web.webservices.Internalcommunication.IInternalCommunication" />
    <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
  </service>
</services>

Donald Jansen
  • 1,937
  • 4
  • 22
  • 41

1 Answers1

0

Follow these steps,

  1. Expose end points
  2. Make a Service Reference in your code
  3. Use your above mentioned cod,
Afzal Ahmad
  • 586
  • 5
  • 20
  • Here is a link for that, http://stackoverflow.com/questions/13742065/wcf-service-exposing-2-endpoints-on-2-different-service-contracts – Afzal Ahmad Jan 14 '15 at 07:10