How to send a XML file to RabbitMQ using Python?
问题 I am having an xml file called Test.xml which I am trying to send RabbitMQ using python. I know below deatails regarding the Rabbit MQ Hostname: xxx.xxxx.xxx AMQP Port (SSL) :4589 ESB Portal (Message Search): http://xxx.xxx.xxx:8585 RabbitMQ Web UI (https) :https://xxx.xxx.xxxx:15672 How can this be done from python? 回答1: This can be done using pika, you can read the file content and send it as a big string to RabbitMQ. And on the other side you can parse the content using ElementTree