简体   繁体   English

在WinForms应用程序中托管WCF服务

[英]Host WCF service in WinForms application

I use the same WCF service as here: How to consume wcf service running as windows service in ajax client 我使用与此处相同的WCF服务: 如何使用在ajax客户端中作为Windows服务运行的wcf服务

  1. And I want to show All available methods from browser by view h p://localhost:8732/TestService But I get message: **Endpoint not found. 我想通过视图h p:// localhost:8732 / TestService显示浏览器中所有可用的方法, 但我得到消息:**未找到端点。
  2. Can I send HTML page with AJAX, which get data from this WCF service, in this service method? 我可以通过这种服务方法使用AJAX发送HTML页面,该页面从WCF服务获取数据吗?

Thanks. 谢谢。

What you ask is not very clear, could you perhaps reword it a little bit? 您的要求不是很清楚,您能否改写一下? maybe perhaps post some code? 也许发布一些代码?

Also, have you enabled the MEX endpoint? 另外,您是否启用了MEX端点? or perhaps it is not correctly configured. 或它的配置不正确。 I had a similar problem in which the service appeared to be running but SvcUtil was unable to get any endpoint information. 我有一个类似的问题,其中服务似乎正在运行,但是SvcUtil无法获取任何终结点信息。 After some reconfiguration (both app.config and code) it worked and SvcUtil could find the endpoint information. 经过一些重新配置(app.config和代码)后,它开始工作,SvcUtil可以找到端点信息。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM