Xml rpc client

I am doing a xml rpc client.

Is there a way to display what I’m sending to the server???

This is the code:

class OrderApi < ActionWebService::API::Base

api_method :IPLWSNroDisponible,

         :expects => [{:app_key => :string},

                      {:number_type => :string},

                      {:number_sub_type => :string},

                      {:capcode_category_number => :string},

                      {:customer_id => :int}],

         :returns => [:int]

end

begin

clientXmlRpc = ActionWebService::Client::XmlRpc.new(OrderApi,
http://localhost/”, :handler_name => “iplan”)

KEY = “a6d84317d265f0f7ed56558d1131090b”

nro = clientXmlRpc.IPLWSNroDisponible(KEY, “TELEPHONY”, “ATX”, “NULL”,
1720002910)

rescue Exception => exc

puts exc.message + "\n"

end

Rodrigo D.

Iplan Networks Datos Personales

[email protected] [email protected]

www.iplan.com.ar http://www.iplan.com.ar/
www.rorra.com.ar http://www.rorra.com.ar/

5031-6303 15-5695-6027

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs