为什么我的WCF服务没有';不公开元数据?
我正在与一个不想公开元数据的WCF服务作斗争。根据互联网上的许多帖子,配置文件似乎还可以:为什么我的WCF服务没有';不公开元数据?,wcf,metadata,Wcf,Metadata,我正在与一个不想公开元数据的WCF服务作斗争。根据互联网上的许多帖子,配置文件似乎还可以: <service behaviorConfiguration="Mia.Configurazione" name="Mio.UserService"> <endpoint address="JSON" binding="webHttpBinding" contract="MioWS.IUserService" behaviorConf
<service behaviorConfiguration="Mia.Configurazione" name="Mio.UserService">
<endpoint address="JSON" binding="webHttpBinding" contract="MioWS.IUserService"
behaviorConfiguration="JSONEndpointBehavior" bindingConfiguration="" name="RESTEP">
</endpoint>
<endpoint address="" binding="basicHttpBinding" contract="MioWS.IUserService">
<identity>
<dns value="localhost"/>
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
</service>
服务器回复HTTP错误400(错误请求)。有什么想法吗?我会为服务添加基本地址,并尝试您的url,以/mex而不是/$metadata服务器总是回复“错误请求”@pierpaoloilcontectparis-您解决了这个问题吗?
http://localhost:55555/api/UserService.svc/$metadata