关于 WSDL 与 MEX? [英] All about WSDL vs MEX?

查看:21
本文介绍了关于 WSDL 与 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,您是否添加了带有 的服务行为?元素?它可以为空,即<serviceMetadata/>,但它必须存在.服务定义需要引用服务行为配置.查看以下示例:

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆