Hi Peter,
As for WCF over MSMQ, the messages it transfers is still WCF format
messages(based on the Binding and configuration you use), MSMQ is used as
an transport layer here. Sure, the message size will become larger since
it
contains WCF message envelope, and also has other additional overhead due
to the WCF processing pipeline(such as those message processing stacks at
server and client-side).
There does exists some information about optimizing the WCF over MSMQ:
#How can I speed up message processing when using MSMQ with WCF?
http://blogs.msdn.com/drnick/archive/2007/05/07/optimizing-msmq.aspx
However, I'm wondering whether WCF is actually necessary for your
scenario?
If the data transfer doesn't quite rely on the WCF features(such as http
transfer, message security.... ), then you can consider still directly use
System.Messaging namespace classes to do the raw MSMQ programming. If
instead, you want the WCF service side keep using WCF, and the client-side
sending the raw MSMQ message, you can consider using the
MsmqIntegrationBinding. Here are some reference and examples:
#How to: Exchange Messages with WCF Endpoints and Message Queuing
Applications
http://msdn2.microsoft.com/en-us/library/ms789008.aspx
#SOA'izing MSMQ with WCF (and Why It's Worth It)
http://code.msdn.microsoft.com/msmqpluswcf
Anyway, when using WCF it does add some overheard due to the additional
services/features WCF processing pipeline and message envelope attach.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.
--------------------
From: "Peter Larsen [CPH]" <
[email protected]>
Subject: WCF and MessageQueue
Date: Thu, 10 Apr 2008 11:04:59 +0200
Hi,
How do i send MSMQ messages using the old way
(System.Messaging.MessageQueue) to a host that use WCF ??
Messages sent through WCF are much bigger than messages created/sent through
MessageQueue.
Is there a way to exchange messages between the two systems ??
BR
Peter