Nuby ?: How to create XML request with Ruby

Hi Guys,

I’m trying to figure out how to create an XML request using Ruby. I need
to
define a set amount of fields within the request and post it to a
specific
host and port. I’m new to Ruby and am not really sure on how I could do
this. Suggestions?

~Myles

For creating XML, I suggest looking at REXML
(http://www.ruby-doc.org/stdlib/libdoc/rexml/rdoc/index.html) or ERB
(http://www.ruby-doc.org/stdlib/libdoc/erb/rdoc/index.html).

Donald M. wrote:

Hi Guys,

I’m trying to figure out how to create an XML request using Ruby. I need to
define a set amount of fields within the request and post it to a specific
host and port. I’m new to Ruby and am not really sure on how I could do
this. Suggestions?

Is this for a specific protocol, like SOAP or XMLRPC? They both have
wrapper libraries which could be useful.

I don’t think so…just a simple XML request that I post to a URL and
port.

On 3/6/07, Donald M. [email protected] wrote:

I don’t think so…just a simple XML request that I post to a URL and port.

Net/HTTP, REXML (or XmlSimple), open-uri are all libraries that allow
you to
send XML content over HTTP POST.