def callback(channel, method, properties, message): print 'Message from gateway:', message response = {'status': 'OK', 'order': message} print 'Sending a response: ', response publish_message(message, channel, 'helicom_test_queue_from_service')
def publish(self, message): print "Publishing to service:", message pika_utils.publish_message(message, self.channel, self.routing_key)