Send an XML message to Amazon SQS

Posted by bartligthart on Stack Overflow See other posts from Stack Overflow or by bartligthart
Published on 2009-11-02T10:51:09Z Indexed on 2010/04/19 13:23 UTC
Read the original article Hit count: 350

I am a newbie to Amazon SQS and ruby on rails. And i am working on a project that some XML messages must be send to SQS. How do i do that?

Now i have this in the controller after the .save

 def create

    @thing = Thing.new(params[:thing])

    respond_to do |format|

      if @thing.save
        message = @thing.to_xml

and in the model

inputqueue.send_message(message) 

Is this the way i can send an XML file to SQS or??

© Stack Overflow or respective owner

Related posts about amazon-web-services

Related posts about amazon-sqs