客服端调用自定义宿主的WCF报错"没有终结点在侦听可以接受消息的http://localhost:8085/mex。这通常是由于不正确的地址或者 SOAP 操作导致的错误"的解决方案。
没有终结点在侦听可以接受消息的http://localhost:8085/mex。这通常是由于不正确的地址或者 SOAP 操作导致的错误。
这个错误是由于没有启动元数据交换终结点(MEX)导致的。在宿主配置里面加上如下终结点就好:|
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
完整的app.config
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<services>
<service name="Stone.Services.ProductOperationService" behaviorConfiguration="dataControctBehavior">
<endpoint binding="wsHttpBinding" contract="Stone.Contracts.IProductOperationContract"
bindingConfiguration="dataControctBinding" ></endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8085/"/>
</baseAddresses>
</host>
</service>
</services>
<bindings>
<wsHttpBinding>
<binding name="dataControctBinding">
</binding>
</wsHttpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="dataControctBehavior">
<serviceDebug includeExceptionDetailInFaults="true"/>
<serviceMetadata httpGetEnabled="true" httpGetUrl="http://localhost:8085/mex"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
最新文章
- 阶段一:用Handler和Message实现计时效果及其中一些疑问
- 【Swift学习】Swift编程之旅---集合类型之数组(六)
- 素数的线性筛 &;&; 欧拉函数
- hdu 2159 FATE
- 如何保证App外包的最终质量,不延期不烂尾?
- CPlus播放多媒体之播放声音
- 推荐一些C#相关的网站、资源和书籍
- SqlBulkCopy批量写入25万条数据只需3s
- jQuery—一些常见方法(1)【filter(),not(),has(),next(),prev(),find(),eq(),index(),attr(),】
- Redis学习手册(String数据类型)
- objective-c 加号 减号 - +
- 【待解决】编译V8引擎出错-snapshot.cc
- 本地php 连接 MySQL
- Intent解析
- [快速傅立叶变换&;快速傅里叶变换]【旧 手写笔记】
- 使用chcache 缓存
- cmd命令行安装,删除Windows证书(certgmr的简单使用)
- python元类:type和metaclass
- SaltStack应用grains和jinja模板-第四篇
- bzoj 1085 [SCOI2005]骑士精神——IDA*
热门文章
- java 读取Excel文件并数据持久化方法Demo
- [Reprint]c++ 析构函数的调用
- c++之路起航——指针
- yii框架中保存第三方登录信息
- (转载)R14也称作子程序连接寄存器
- Oracle11.2新特性之listagg函数 (行列转换)
- 在linux下的firefox中安装flashplayer
- [转载] 关关采集不能生成html的问题
- 解决 “invalid resource directory name”, resource “crunch”
- ActiveMQ消息的可靠性机制(转)