WCF中的NetMsmqBinding [英] NetMsmqBinding in WCF

查看:57
本文介绍了WCF中的NetMsmqBinding的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面提到的链接对于我的初学者来说非常有用,但是我的困惑是我们应该在哪里将HostApp类保留在服务中.
并且此示例将作为控制台应用程序运行.
http://msdn.microsoft.com/zh-CN/library/system.servicemodel.netmsmqbinding.aspx
实际上,我想为MSMQ编写一个WCF服务,并且功能是服务包含一种方法,并且当用户从客户端传递将字符串传递给MSMQ的消息时,它将参数作为字符串接受.
这里的服务应该是独立的,当用户想要执行MSQM功能时,需要像网络服务引用一样从MSMQ服务进行引用.
请给我建议.
谢谢.

Below mentioned link is very useful as a beginner to me, but my confusion where should we keep the class HostApp in the service.
And this example will run as console application.
http://msdn.microsoft.com/en-us/library/system.servicemodel.netmsmqbinding.aspx
Actually I would like to write one WCF service for MSMQ and the functionality is service contains one method and it accepts parameter as a string, when the user pass message from client that string should be passed to MSMQ.
Here the service should be independent, when user wants to execute MSQM functionality he needs to reference from the MSMQ service as like webservice reference.
Please suggest me.
Advance Thanks.

推荐答案

请查看此示例,看看是否有帮助!

Please take a look at this sample and see if that helps you!

http://msdn.microsoft.com/en-us/library/ms789008.aspx


这篇关于WCF中的NetMsmqBinding的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆