IMetadataExchange 端点用途
IMetadataExchange 端点的用途是什么。我发现在某些地方,如果我不定义此端点,则添加服务引用将不起作用,或者使用 svcutil 创建代理将不起作用。但这两者都可以在没有定义 IMetadataExchange 的情况下工作。
如果我们有其他端点 httpGetEnabled = true,我们就可以从客户端创建代理。
另外,有些文章说我们应该在将代码移至生产环境之前删除 IMetadataExchange,并且应该仅在开发期间删除,以便其他客户端无法看到元数据。这是否会阻止服务自我描述的行为?
如果我定义了这个 IMetadataExchange 端点,我如何在浏览器上看到它。我为此端点提供的地址不会在浏览器中提取任何元数据。
What is the purpose of IMetadataExchange endpoint. Some places i found that if i dont define this endpoint, adding service reference will not work OR creating proxy using svcutil wont work. But both of this working without having IMetadataExchange defined.
If we have other endpoint with httpGetEnabled = true, we are able to create proxy from client.
Also, some article says that we should delete IMetadataExchange before moving code to production and it should development period only so that other client cant see metadata. Doesnt this stop the behaviour of service having self describing itself?
And if I have defined this IMetadataExchange endpoint, how can i see that on browser. Address whoch i have provided for this endpoint is not pulling any metadata in browser.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
服务元数据可以通过两种方式提供:
Service metadata can be served two ways: