Tom Hollander has a 3-part series on getting MSMQ, WCF, and IIS playing together nicely based on his work in the trenches. He also finishes the tutorials with a downloadable example.
Per Tom:
"Previously, in MSMQ, WCF and IIS: Getting them to play nice:
- In Part 1, we built a client and IIS-hosted service application and got them communicating over MSMQ using WCF's NetMsmqBinding.
- In Part 2, we deployed the same application across multiple servers, and enabled transport security for MSMQ.
In today's thrilling conclusion, we'll improve the resiliency of the solution by going transactional. Fasten your seat belts!"
If you go to his Part 3 here, you will find links to the other two parts. Thanks, Tom!
Make sure you check out other WCF Tutorials, and in particular, the WCF Security Section that mentions the WCF Security Guidance Project on CodePlex.