I want to install WCF on remote host and connect my desktop application to it. I install the WCF but when I try to access the service via browser it says that:
Metadata publishing for this service is currently disabled.
Also I couldn't add service reference to my desktop application.
The HTML document does not contain Web service discovery information.
Metadata contains a reference that cannot be resolved: 'http://xxx.xxx.xxx.xxx./test/test.svc'.
Content Type application/soap+xml; charset=utf-8 was not supported by service http://xxx.xxx.xxx.xxx/test/test.svc. The client and service bindings may be mismatched.
The remote server returned an error: (415) Cannot process the message because the content type 'application/soap+xml; charset=utf-8' was not the expected type 'text/xml; charset=utf-8'..
If the service is defined in the current solution, try building the solution and adding the service reference again.
public class Test: ITest
<%@ ServiceHost Language="C#" Service="TestExample.Test" %>
<compilation debug="true" />
<endpoint address="" binding="wsHttpBinding" contract="TestExample.ITest" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<add baseAddress="http://xxx.xxx.xxx.xxx/test/test.svc" />
<serviceDebug includeExceptionDetailInFaults="False" />
What I miss? Any suggestions?
Thank you in advance!