What is the actual MSMQ address used by the respective WCF binding?
This question is related to this one.
Given that WCF binding uses net.msmq://
URL, for instance net.msmq://server/private/nc_queue
, how can one know what is the actual MSMQ address to which this URL is translated? Is there some kind of a trace that can be activated? Or an external tool that would help one capture the address?
Thanks.
EDIT1
OK, I owe a clarification. One can talk directly to MSMQ through the respective .NET API. In the case of MSMQ over its native port 1801, I would use this MSMQ address:
FormatName:Direct=OS:server\private$\nc_queue
When MSMQ is configured over HTTP, the address changes to something like this:
FormatName:Direct=http://server/msmq/nc_queue
But the WCF binding uses a standard URL to describe the address, like:
net.msmq://server/private/nc_queue
So, how can I know what is the actual MSMQ address (the one with the FormatName) to 开发者_JAVA技巧which the net.msmq://
is translated?
I don't really understand your question.... if you use the WCF netMsmqBinding
, you're basically dropping off MSMQ messages into an MSMQ queue. So what you really have is a queue name that you're dealing with - not a URL.....
net.msmq://server/private/nc_queue
This translates into a MSMQ private queue called nc_queue
on server
- so what is it really that you're trying to do?? I'm not getting it..... care to clarify??
In the meantime, check out Tom Hollander's three-part blog post series on MSMQ, WCF and IIS:
- MSMQ, WCF and IIS: Getting them to play nice (part 1 of 3)
- MSMQ, WCF and IIS: Getting them to play nice (part 2 of 3)
- MSMQ, WCF and IIS: Getting them to play nice (part 3 of 3)
Update: I think I'm beginning to understand your issues - if you're using the WCF netMsmqBinding
, you're connecting to MSMQ directly - this is not "MSMQ-over-HTTP". If you want to set up and use MSMQ-over-HTTP from a WCF client, from what I understand, you'd be talking to a straight regular HTTP service, so you'd have to use basicHttpBinding
(or wsHttpBinding
) - not the specific netMsmqBinding
.
精彩评论