method
perform_invocation

v1.1.6 -
Show latest stable
-
0 notes -
Class: ActionWebService::Client::XmlRpc
- 1.0.0 (0)
- 1.1.6 (0)
- 1.2.6 (0)
- 2.0.3
- 2.1.0
- 2.2.1
- 2.3.8
- 3.0.0
- 3.0.9
- 3.1.0
- 3.2.1
- 3.2.8
- 3.2.13
- 4.0.2
- 4.1.8
- 4.2.1
- 4.2.7
- 4.2.9
- 5.0.0.1
- 5.1.7
- 5.2.3
- 6.0.0
- 6.1.3.1
- 6.1.7.7
- 7.0.0
- 7.1.3.2
- 7.1.3.4
- What's this?
perform_invocation(method_name, args)
protected
Hide source
# File actionwebservice/lib/action_web_service/client/xmlrpc_client.rb, line 38 def perform_invocation(method_name, args) method = @api.api_methods[method_name.to_sym] if method.expects && method.expects.length != args.length raise(ArgumentError, "#{method.public_name}: wrong number of arguments (#{args.length} for #{method.expects.length})") end args = method.cast_expects(args.dup) rescue args if method.expects method.expects.each_with_index{ |type, i| args[i] = @protocol.value_to_xmlrpc_wire_format(args[i], type) } end ok, return_value = @client.call2(public_name(method_name), *args) return (method.cast_returns(return_value.dup) rescue return_value) if ok raise(ClientError, "#{return_value.faultCode}: #{return_value.faultString}") end