Metadata publishing for this service is currently disabled.
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.
namespace TestExample { public class Test: ITest { ... } }
<%@ ServiceHost Language="C#" Service="TestExample.Test" %>
<?xml version="1.0" encoding="utf-8" ?> <configuration> <system.web> <compilation debug="true" /> </system.web> <system.serviceModel> <services> <service name="TestExample.Test"> <endpoint address="" binding="wsHttpBinding" contract="TestExample.ITest" /> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> <host> <baseAddresses> <add baseAddress="http://xxx.xxx.xxx.xxx/test/test.svc" /> </baseAddresses> </host> </service> </services> <behaviors> <serviceBehaviors> <behavior> <serviceMetadata httpGetEnabled="True"/> <serviceDebug includeExceptionDetailInFaults="False" /> </behavior> </serviceBehaviors> </behaviors> </system.serviceModel> </configuration>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)