none
How to deploy MSMQ on IIS (WCF) RRS feed

  • Question

  • Hi,
      I want to use netMsmqBinding. in WCF service and deploy on the IIS.
    First of all I want to know ,can we deploy netMsmqBinding on IIS.if yes then how?.I have created an application like 
    [ServiceContract()]
    public interface IMSMQWCFService
    {
        //[OperationContract]
        //string MyOperation1(string myValue);

        [OperationContract(IsOneWay = true)]
        void SendMessage(string message);
    }

    public class MSMQWCFService : IMSMQWCFService
    {

        #region IMSMQService Members

        public void SendMessage(string message)
        {
            Console.WriteLine("Received Request--------->Message Received{0}", message);
            Console.ReadLine(); 

        }

        #endregion
    }
    server -   web.config file 
    <system.serviceModel>
    <bindings>
    <netMsmqBinding>
    <binding name="MsmqBindingNonTransactionalNoSecurity" exactlyOnce="false">
    <security mode="None"/>
    </binding>
    </netMsmqBinding>
    </bindings>
    <client>
    <endpoint name="MSMQWCFService"
     address="net.msmq://localhost/private/MSMQWCFService/MSMQWCFService.svc"
     binding="netMsmqBinding" bindingConfiguration="MsmqBindingNonTransactionalNoSecurity"
     contract="IMSMQWCFService" />
    </client>
    </system.serviceModel>
    I want to send message from client .Please tell me how to send message from client  to server using MSMQ.
    Regards,
    Rajesh


    rajesh
    • Moved by eryang Monday, November 23, 2009 6:31 AM (From:.NET Base Class Library)
    Tuesday, November 17, 2009 4:28 AM

All replies

  • Hi,
    Thanks for your post, but http://forums.iis.net where IIS experts live in, is dedicated to IIS and related technologies, you can post it there for better responses.

    Thanks,
    Eric
    Please remember to mark helpful replies as answers and unmark them if they provide no help.
    Wednesday, November 18, 2009 3:14 AM