Call WCF RabbitMQ Service from non-.net client?

65 views
Skip to first unread message

Randy Magruder

unread,
Apr 8, 2015, 10:33:00 AM4/8/15
to rabbitm...@googlegroups.com
Hi all,

I have created and tested the .net client/service demo and it runs fine, even using a remote queue.

Problem is, the clients who need to call my service via RabbitMQ are Java users.  How exactly would they go about constructing a WCF Service call that used an RabbitMQ binding?

Thanks,
Randy

Michael Klishin

unread,
Apr 8, 2015, 10:42:42 AM4/8/15
to rabbitm...@googlegroups.com, Randy Magruder
On 8 April 2015 at 17:33:03, Randy Magruder (randy.m...@gmail.com) wrote:
> Problem is, the clients who need to call my service via RabbitMQ
> are Java users. How exactly would they go about constructing
> a WCF Service call that used an RabbitMQ binding?

Randy,

I'm afraid you'd have to read the WCF binding source code and create a small Java library
that does more or less the same thing.

Note that the WCF binding is not under active development. I'd recommend using the .NET client
directly if you have this option, or EasyNetQ/NServiceBus if you're looking for a higher-level library
(those may be easier to make interoperate with Java but definitely not as straightforward as the .NET
client). 
--
MK

Staff Software Engineer, Pivotal/RabbitMQ


Randy Magruder

unread,
Apr 8, 2015, 10:47:41 AM4/8/15
to Michael Klishin, rabbitm...@googlegroups.com
Michael,

Thanks for the info on this.  The requirement was given to me that the other teams wanted to put a message on a queue, and we (on the .net side) would have some way to pick it up and call one of our services to do something.

I have previously used the Microsoft msmq listener with windows activation service to 'wake up' a WCF service and make a call on it.  So that was obviously the direction I was coming from.  

Assuming I use the .net client, and want to build a RabbitMQ-based system here, do you guys have a recommended architecture fo this kind of RPC system?  I was pondering making a windows service that would monitor RabbitMQ and call services, but then I have to think about the content of the messages and how they are formatted (if we aren't using a 'SOAPy" approach).

I'm open to all solutions, not married to mine.

Randy


Michael Klishin

unread,
Apr 8, 2015, 10:50:48 AM4/8/15
to rabbitm...@googlegroups.com, Randy Magruder
On 8 April 2015 at 17:47:40, Randy Magruder (randy.m...@gmail.com) wrote:
> Thanks for the info on this. The requirement was given to me that
> the other teams wanted to put a message on a queue, and we (on the
> .net side) would have some way to pick it up and call one of our services
> to do something.
>
> I have previously used the Microsoft msmq listener with windows
> activation service to 'wake up' a WCF service and make a call on
> it. So that was obviously the direction I was coming from.
>
> Assuming I use the .net client, and want to build a RabbitMQ-based
> system here, do you guys have a recommended architecture fo this
> kind of RPC system? I was pondering making a windows service that
> would monitor RabbitMQ and call services, but then I have to think
> about the content of the messages and how they are formatted (if
> we aren't using a 'SOAPy" approach).
>
> I'm open to all solutions, not married to mine.

Take a look at tutorial 6:
http://www.rabbitmq.com/getstarted.html

once you feel comfortable with that, take a look at a more efficient
way of doing the same thing:
http://www.rabbitmq.com/direct-reply-to.html 

Randy Magruder

unread,
Apr 8, 2015, 10:51:41 AM4/8/15
to rabbitm...@googlegroups.com, randy.m...@gmail.com
Thanks, I'll go look into this now!
Reply all
Reply to author
Forward
0 new messages