Posting XML to remote Web Service

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?

Thanks,
Steve

On Jul 18, 8:36 pm, CTOguy [email protected] 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