简体   繁体   English

使用 WS-Addressing over https 访问 WCF 服务时面临问题

[英]facing issue while accessing WCF service with WS-Addressing over https

I am trying to run a wcf service which i have created using ws-addressing custom binding.我正在尝试运行我使用 ws-addressing 自定义绑定创建的 wcf 服务。 when i am running the application locally then getting following error.当我在本地运行应用程序时出现以下错误。 could any one point out the solution?有人能指出解决方案吗?

Error: Cannot obtain Metadata from https://localhost:8734/eTirWebocService/MessageHandlerService/mex If this is a Windows (R) Communication Foundation service to which you have access, please check that you have enabled metadata publishing at the specified address.错误:无法从 https://localhost:8734/eTirWebocService/MessageHandlerService/mex 获取元数据 如果这是您有权访问的 Windows (R) Communication Foundation 服务,请检查您是否已在指定地址启用元数据发布。 For help enabling metadata publishing, please refer to the MSDN documentation at http://go.microsoft.com/fwlink/?LinkId=65455.WS-Metadata Exchange Error URI: https://localhost:8734/eTirWebocService/MessageHandlerService/mex Metadata contains a reference that cannot be resolved: 'https://localhost:8734/eTirWebocService/MessageHandlerService/mex'.有关启用元数据发布的帮助,请参阅位于http://go.microsoft.com/fwlink/?LinkId=65455.WS-元数据交换错误 URI: https://localhost:8734/eTirWebocService/MessageHandlerService/m 的 MSDN 文档元数据包含无法解析的引用:“https://localhost:8734/eTirWebocService/MessageHandlerService/mex”。 An error occurred while making the HTTP request to https://localhost:8734/eTirWebocService/MessageHandlerService/mex.向 https://localhost:8734/eTirWebocService/MessageHandlerService/mex 发出 HTTP 请求时出错。 This could be due to the fact that the server certificate is not configured properly with HTTP.SYS in the HTTPS case.这可能是由于在 HTTPS 案例中未使用 HTTP.SYS 正确配置服务器证书。 This could also be caused by a mismatch of the security binding between the client and the server.这也可能是由于客户端和服务器之间的安全绑定不匹配造成的。 The underlying connection was closed: An unexpected error occurred on a send.底层连接已关闭:发送时发生意外错误。 Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.无法从传输连接读取数据:现有连接被远程主机强行关闭。 An existing connection was forcibly closed by the remote hostHTTP GET Error URI: https://localhost:8734/eTirWebocService/MessageHandlerService/mex There was an error downloading 'https://localhost:8734/eTirWebocService/MessageHandlerService/mex'.远程主机强制关闭现有连接HTTP GET 错误 URI:https://localhost:8734/eTirWebocService/MessageHandlerService/mex 下载“https://localhost:8734/eTirWebocService/MessageHandlerService/mex”时出错。 The underlying connection was closed: An unexpected error occurred on a send.底层连接已关闭:发送时发生意外错误。 Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.无法从传输连接读取数据:现有连接被远程主机强行关闭。 An existing connection was forcibly closed by the remote host现有连接被远程主机强行关闭

my app.config looks like this我的 app.config 看起来像这样

enter image description here在此处输入图像描述

Maybe you can try these steps to fix it:也许您可以尝试以下步骤来修复它:

  1. Check the service name in the.svc file.检查 .svc 文件中的服务名称。
  2. Match the name to the Service tag in the Web.config to see if it is the same.将名称与Web.config中的Service标签匹配,看是否相同。
  3. Check whether the address on the Web page is different from the address on the client.检查Web页面地址是否与客户端地址不同。

You can also check to see if the name of your CustomBinding is duplicate, and if so, set it to a different name.您还可以检查您的 CustomBinding 的名称是否重复,如果是,请将其设置为不同的名称。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用WS-Addressing请求ASMX服务 - Request to ASMX service with WS-Addressing 如何在WCF服务响应中正确实现自定义soap 1.2标头和WS-Addressing - How to correctly implement custom soap 1.2 headers and WS-Addressing in a WCF service response wsa:在异步Web服务的ws寻址中的ReplyTo地址 - wsa:ReplyTo address in ws-addressing for the asynchronous web service WCF CustomBing异常-AddressingNone不支持添加WS-Addressing标头 - WCF CustomBing exception - AddressingNone does not support adding WS-Addressing headers SOAP请求中的ws寻址以编程方式 - ws-addressing in soap request programatically SOAP WCF WS-Addressing '找到多个名称为'Action'和命名空间'http://schemas.microsoft.com/ws/2005/05/addressing/none'的标头。 - SOAP WCF WS-Addressing 'Multiple headers with name 'Action' and namespace 'http://schemas.microsoft.com/ws/2005/05/addressing/none' found.' Xamarin App通过https连接到WCF服务的问题 - Issue with Xamarin App Connecting to WCF Service over https 从WSE 3.0客户端请求中删除WS-Addressing / WS-Security部分 - Remove WS-Addressing/WS-Security sections from WSE 3.0 Client request 从头开始使用WS-Addressing和WS-Security创建SOAP标头 - Creating a SOAP Header with WS-Addressing and WS-Security from scratch 谁负责在传出消息的SOAP标头中设置To WS(Ws-Addressing)命名空间? - Who is responsible to set the To WS(Ws-Addressing) namespace in SOAP header in an outgoing message?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM