Click here to Skip to main content
15,888,269 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi Frnds,


anyone can help me to provide sample code or Steps to implement webservice with MSMQ .
I have already installed msmq in my server .

Thanks
Posted

1 solution

basically you need

1 - something that enqueues requests
2 - something that reads the queue and processes the requests.

1) to enqueue request you can make a WCF service, so you can have a "client" that sumbit request using that service.
2) to read the queue you can create a ServiceHost that keep waiting new requests on the given queue.

BUT keep in mind that is a "Fire and forget" approach, so when you put something in the queue you can't know anything about it.

if you need to get informed about your request's status you need a bidirectional system with 2 queue and things become a little more complex.

you can find a working sample here
Creating a WCF Service with MSMQ Communication and Certificate Security[^]

or here
wcf-and-msmq-part-1/[^]

bye
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900