WCF MSMQ callback function

callbackmsmqwcf

I have a system that sends a object to another service via WCF using MSMQ. The service picks the message up fine and does what it have to with it. But the problem i have now is that i need to send a response to the calling system.
Example:

  1. Create a Customer object
  2. Populate the information
  3. Send the message to the service using WCF over MSMQ
  4. Pick the message up from the queue using a windows service
  5. Call Customer.Insert() method on the windows service
  6. I now need to send the new customer id back to the calling application here.

Any ideas?

Best Answer

you can use duplex communication with msmq but not natively, take a look to my article