没有终结点在侦听可以接受消息的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>

最新文章

  1. 阶段一:用Handler和Message实现计时效果及其中一些疑问
  2. 【Swift学习】Swift编程之旅---集合类型之数组(六)
  3. 素数的线性筛 &amp;&amp; 欧拉函数
  4. hdu 2159 FATE
  5. 如何保证App外包的最终质量,不延期不烂尾?
  6. CPlus播放多媒体之播放声音
  7. 推荐一些C#相关的网站、资源和书籍
  8. SqlBulkCopy批量写入25万条数据只需3s
  9. jQuery—一些常见方法(1)【filter(),not(),has(),next(),prev(),find(),eq(),index(),attr(),】
  10. Redis学习手册(String数据类型)
  11. objective-c 加号 减号 - +
  12. 【待解决】编译V8引擎出错-snapshot.cc
  13. 本地php 连接 MySQL
  14. Intent解析
  15. [快速傅立叶变换&amp;快速傅里叶变换]【旧 手写笔记】
  16. 使用chcache 缓存
  17. cmd命令行安装,删除Windows证书(certgmr的简单使用)
  18. python元类:type和metaclass
  19. SaltStack应用grains和jinja模板-第四篇
  20. bzoj 1085 [SCOI2005]骑士精神——IDA*

热门文章

  1. java 读取Excel文件并数据持久化方法Demo
  2. [Reprint]c++ 析构函数的调用
  3. c++之路起航——指针
  4. yii框架中保存第三方登录信息
  5. (转载)R14也称作子程序连接寄存器
  6. Oracle11.2新特性之listagg函数 (行列转换)
  7. 在linux下的firefox中安装flashplayer
  8. [转载] 关关采集不能生成html的问题
  9. 解决 “invalid resource directory name”, resource “crunch”
  10. ActiveMQ消息的可靠性机制(转)