On Jul 18, 8:36 pm, CTOguy
<lebaro...-Wuw85uim5zDR7s880joybQ@public.gmane.org>
wrote:> I have succeeded in building an XML document using Builder template
> which I would like to post to
> a remote service for credit card processing by doing an xml render
> with a controller. What''s the best way
> to grab this XML and send it off via an HTTP POST to the remote
> endpoint?
>
Well it''s easy enough to get a string containing the xml (eg use
the :target option when you create the builder or the target! method
afterwards).
Then use Net::HTTP to post the data.
Fred> Thanks,
> Steve
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---