1.IIS已经绑定上了
2.元数据也可以发布,客户端找得到发布的元数据,也能添加数据到消息队列里面,
但是在浏览器中输入url的时候总是会跳出下面的框,而且服务端也不能从消息队列里面获取数据(会弹出下面的框,貌似找不到消息队列)
<system.serviceModel> <serviceHostingEnvironment multipleSiteBindingsEnabled="true" /> <bindings> <netMsmqBinding> <binding name="msmqBinding" receiveErrorHandling="Drop" receiveRetryCount="0" retryCycleDelay="00:00:20" maxRetryCycles="2"> <security mode="None" /> </binding> </netMsmqBinding> </bindings> <services> <service name="WebApplication1.Service1"> <endpoint binding="netMsmqBinding" bindingConfiguration="msmqBinding" address="net.msmq://./private/myqueue" contract="WebApplication1.IService1" /> </service> </services> <behaviors> <serviceBehaviors> <behavior name=""> <serviceMetadata httpGetEnabled="true" /> <serviceDebug includeExceptionDetailInFaults="false" /> </behavior> </serviceBehaviors> </behaviors> </system.serviceModel>
微软官方的这个详细步骤可参考
http://blogs.msdn.com/b/tomholl/archive/2008/07/12/msmq-wcf-and-iis-getting-them-to-play-nice-part-1.aspx
http://blogs.msdn.com/b/tomholl/archive/2008/07/13/msmq-wcf-and-iis-getting-them-to-play-nice-part-2.aspx