none
Calling a Wcf service Dynamically Using reflections and NettcpBinding RRS feed

  • Question

  • Hi,

         I am creating a Generic WCF client. It is working fine with BasicHttpBinding and WsHttpBinding But with netTcpBinding it is able to load the assembly and created a proxy calss and even created the instance of the proxy calss But when I try to invoke any one of the service under this binding it is throwing the following exception

    {"The provided URI scheme 'http' is invalid; expected 'net.tcp'.\r\nParameter name: via"}

    My config file at server side is

     <services>
          <service name="WCFServerTcp.CalTcp">
            <endpoint address="" binding="netTcpBinding" bindingConfiguration=""
              contract="WCFServerTcp.ICalTcp">
              <identity>
                <dns value="localhost" />
              </identity>
            </endpoint>
            <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
       
            <host>
              <baseAddresses>
                <add baseAddress="http://localhost:8734/Design_Time_Addresses/WCFServerTcp/Service1/" />
                <add baseAddress="net.tcp://localhost/" />
              </baseAddresses>
            </host>
          </service>
        </services> 

    the uri provided  is

    http://localhost:8734/Design_Time_Addresses/WCFServerTcp/Service1/?wsdl

    I am unable to trace out where I went wrong. The same client working well with Http and WsHttp Binding.


    MANIKANTA

    Monday, June 24, 2013 1:31 PM

Answers