简体   繁体   English

使用WCF Web服务时“没有侦听端点可以接受消息”

[英]“There was no endpoint listening at that could accept the message” when consuming WCF web service

I've seen several questions about this, but they all seem to be from the perspective of someone hosting a web service. 我已经看到了几个有关此的问题,但它们似乎都是从托管Web服务的人的角度来看的。 In my case, I am the consumer only to a web service being provided by another company that I don't have access/control over. 就我而言,我仅是我无法访问/控制的另一家公司提供的Web服务的使用者。

Basically the other company is hosting a WCF web service that has two methods that I need to call. 基本上,另一家公司托管的WCF Web服务具有两种我需要调用的方法。 I added the service reference to ac# console application using the URL/WSDL and it generated the necessary classes. 我使用URL / WSDL将服务引用添加到ac#控制台应用程序,并且它生成了必要的类。 So far, so good. 到现在为止还挺好。

But when I call either of the methods via my app, it comes back with a "There was no endpoint listening at that could accept the message" and the inner exception says "The remote server returned an error: (404) Not Found." 但是,当我通过我的应用程序调用这两种方法时,它返回“没有侦听端点可以接受消息的消息” ,并且内部异常显示“远程服务器返回错误:(404)未找到”。

When I checked the WSDL, I noticed there is no 'bindings' section and indeed no binding details have been automatically generated in my app.config. 当我检查WSDL时,我注意到没有“绑定”部分,并且在我的app.config中实际上没有自动生成任何绑定详细信息。 When I've consumed web services in the past, I've never had to worry about this part, so I'm not sure if it's normal. 过去使用Web服务时,我不必担心这部分,因此我不确定这是否正常。

So, my question is: Is this an error on the other companies part and do they have to provide this information to me, or is this something I should be able to configure from my end? 因此,我的问题是:这是其他公司的错误,他们是否必须向我提供此信息,还是我应该从头开始配置?

IIS server, hosting WCF service, filter incoming requests against some criteria's and reject request with a 404 Not found error page if some validation fail. 承载WCF服务的IIS服务器根据某些条件过滤传入的请求,如果某些验证失败,则使用“ 404找不到错误”页面拒绝请求。

For example IIS will reject request with 404 not found page if request size is more than ~28.6MB (default value) or configured limit ( reference ). 例如,如果请求大小超过〜28.6MB(默认值)或配置的限制( 参考 ),则IIS将拒绝“ 404未找到”页面的请求。

You can check your call against some of the default limits and then can ask company for more details. 您可以根据一些默认限制检查呼叫,然后可以要求公司提供更多详细信息。

暂无
暂无

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

相关问题 WCF:没有端点在侦听,可以接受消息 - WCF: There was no endpoint listening at, that could accept the message WCF net.pipe://localhost/Ivan.WCFService.Lib/Service1 没有可以接受消息的端点 - WCF There was no endpoint listening at net.pipe://localhost/Ivan.WCFService.Lib/Service1 that could accept the message 在Web.config return中配置WCF端点没有侦听端点可以接受该消息 - Configuration of WCF End points in Web.config return There was no endpoint listening at that could accept the message 没有端点在听……可以接受该消息 - There was no endpoint listening at…that could accept the message 仅在通过Windows服务使用WCF时才“无端点侦听” - “No Endpoint listening” only when consuming WCF via windows service 没有端点监听 <url> 可以接受消息 - There was no endpoint listening at <url> that could accept the message 没有端点侦听 (url) 可以接受消息 - There was no endpoint listening at (url) that could accept the message wcf-代码中的客户端绑定-错误:“没有端点监听.svc来接受消息。” - wcf - Client Binding in Code- Error : “There was no endpoint listening at .svc that could accept the message.” WCF C#Windows Store APP我收到此异常“没有端点在[URL]上监听可以接受该消息…” - WCF C# Windows Store APP I am getting this exception “There was no endpoint listening at [URL] that could accept the message…” WCF Web服务客户端不侦听端点 - WCF Web Service Client no endpoint listening
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM