Class: Ooor::Transport::XmlRpcClient
- Inherits:
-
XMLRPC::Client
- Object
- XMLRPC::Client
- Ooor::Transport::XmlRpcClient
- Defined in:
- lib/ooor/transport/xml_rpc_client.rb
Instance Method Summary collapse
Instance Method Details
#call2(method, *args) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/ooor/transport/xml_rpc_client.rb', line 6 def call2(method, *args) request = create().methodCall(method, *args) data = (["<?xml version='1.0' encoding='UTF-8'?>\n"] + do_rpc(request, false).lines.to_a[1..-1]).join #encoding is not defined by OpenERP and can lead to bug with Ruby 1.9 parser().parseMethodResponse(data) rescue RuntimeError => e raise OpenERPServerError.create_from_trace(e, method, *args) end |