使用MSMQ的Wcf服务 [英] Wcf service with MSMQ

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

问题描述

大家好,





我想创建一个wcf web应用程序,带有自主托管和netMsmqBinding的MSMQ Queue消息......



请帮帮我这样做........





谢谢,

Hi all,


I want to create a wcf web application, with MSMQ Queue messages with selfhosting and netMsmqBinding...

Please help me to do it........


Thanks,

推荐答案

嗨......首先......什么是selfHosting ??

你可以从创建一个开始WCF服务首先使用Visual Studio中的模板。

1)添加DataContracts,这意味着您公开的数据类型,数据类型和内容..

2)添加服务和操作合同,将包含您的方法和内容

3)实施方法



您可以编辑您的WCF服务通过WCF配置编辑器或手动编辑web.config ..

添加netMSMQBinding的终点...



稍后,您可以通过添加服务引用在您创建的Web应用程序中使用此WCF服务。

这里有很多教程,也可以在各种网站上看看..看看..



浏览以下链接..会帮助你...

http://blogs.msdn.com/b/tess/archive/2009/01/12/wcf-101-creating-and-consuming-a -basic-wcf-service-hosted-in-iis.aspx [ ^ ]



问候

Anurag
Hi..first of all..what is selfHosting??
You can start with creating a WCF service first using the templates in Visual Studio.
1)Add DataContracts, which mean what kind of data you wana expose, the datatypes and stuffs..
2)Add Service and Operation Contracts, which will have your methods and stuffs
3)Have an implementation of the methods

You can edit your WCF service by either the WCF COnfiguration editor or by manually editing the web.config..
Add an end-point with netMSMQBinding...

Later you can consume this WCF service in the web app which you wana create,by adding a service reference..
There will be many tutorials available here and also on various sites..Have a look..

Browse thru the below link..it will help you...
http://blogs.msdn.com/b/tess/archive/2009/01/12/wcf-101-creating-and-consuming-a-basic-wcf-service-hosted-in-iis.aspx[^]

Regards
Anurag


这篇关于使用MSMQ的Wcf服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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