关于 WSDL 与 MEX? [英] All about WSDL vs MEX?
问题描述
我无法打开元数据 url http://localhost:8082/Tasks/mex
,即使我在配置文件中添加了 mexHttpBinding.我可以在浏览器中查看这个 MEX 端点吗?
I am not able to open the meta data url http://localhost:8082/Tasks/mex
, even though
I've added the mexHttpBinding in the config file. Can I view this MEX endpoint in a browser?
配置文件如下:
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
问题:
- MEX 与 WSDL 不同吗?如果不是,那为什么我们需要一个基于 WSDL 的 MEX 端点?
- 在 WSDL 中,我看到缺少 WSDL 类型信息.是默认吗?我可以查看 WSDL 中的类型信息吗?
推荐答案
Aakash,您是否添加了带有
Aakash, Did you add a service behavior with a <serviceMetadata> element? It can be empty, i.e. <serviceMetadata />, but it must be present. The service definition needs to reference the service behaviorConfiguration. Check out the following for examples:
http://www.request-response.com/blog/PermaLink,guid,c9513d28-f580-4a33-b4e8-c15476799a9d.aspx
这篇关于关于 WSDL 与 MEX?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!