Error info:
WS-Metadata Exchange Error
URI: http://localhost:8080/WCFTest/Service.svc
HTTP GET Error
URI: http://localhost:8080/WCFTest/Service.svc
在service的web.config中添加
<behaviors>
<serviceBehaviors>
<behavior name="returnFaults" >
<serviceMetadata httpGetEnabled="true" />
<serviceMetadata httpGetEnabled="true" />
</behavior>
</serviceBehaviors>
</behaviors>
即可。