[rabbitmq-discuss] XML in RabbitMQ with Stomp protocol

Maria Garcia maria.garcia.aguirregomez at gmail.com
Wed Jun 12 16:21:43 BST 2013


>
> Hi, 
>
> I am trying to send and receive a XML with a RabbitMQ + Stomp and a 
> browser client, I also use SockJS . First, I send and receive a simple text 
> message without problems, but when I send a XML, I lost my connection and I 
> don't know why. Any idea?
>
> Thanks in advance.
>
> Here my code, where d.body supposedly is my XML message:
 

> <script>
>       // Stomp.js  create WS connection
>      var ws = new SockJS('http://' + window.location.hostname + 
> ':15674/stomp');
>       var client = Stomp.over(ws);
>
>       client.heartbeat.outgoing = 0;
>       client.heartbeat.incoming = 0;
>        
>
>       var on_connect = function(x) {
>             
>
          id = client.subscribe("/exchange/nombreExchange", function(d) {
>                print_first(d.body);
>             });
>       };
>
>       var on_error =  function() {
>         console.log('error');
>       };
>       client.connect('guest', 'guest', on_connect, on_error, '/');
>
>
>     </script>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130612/96a93c52/attachment.htm>


More information about the rabbitmq-discuss mailing list