WCF Test Client Does Not Download Service

I recently developed a wcf service. He worked until yesterday. I was able to test it using VS2010 in the built-in WCF testing client. Since yesterday I could not see my service in the WCF testing client. When I press F5, it opens the Wcf client test window and at the bottom it shows that Servie has been added successfully. But it does not download any services. I tried to add it manually from the file / add service, but it does not load. What could be the problem. I really appreciate your help. Here is my Web.config.


<system.serviceModel> <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/> <bindings/> <client/> <services> <service behaviorConfiguration="myproj.ServiceBehavior" name="myproj.Service"> <endpoint address="" binding="webHttpBinding" contract="myproj.IService" behaviorConfiguration="REST"> <identity> <dns value="localhost"/> </identity> </endpoint> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/> </service> </services> <behaviors> <endpointBehaviors> <behavior name="REST"> <webHttp/> </behavior> </endpointBehaviors> <serviceBehaviors> <behavior name="myproj.ServiceBehavior"> <serviceMetadata httpGetEnabled="true"/> <serviceDebug includeExceptionDetailInFaults="false"/> </behavior> </serviceBehaviors> </behaviors> </system.serviceModel> 
+7
source share
1 answer

You are using webHttpBinding for a REST-style WCF service.

Test Test Client is a SOAP test application - it works with SOAP web services (basically something , but webHttpBinding , in WCF).

For REST services, just find the service URL and call the REST service this way.

+20
source

All Articles