continuum-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Sanchez <car...@apache.org>
Subject Re: Accessing the xml-rpc interface from ruby
Date Wed, 29 Jul 2009 20:34:44 GMT
finally found out that it just required the fully qualified method name, doh!

result = client.call("org.apache.maven.continuum.xmlrpc.ContinuumService.buildProject","1")


2009/7/25 Carlos Sanchez <carlos@apache.org>:
> I was trying to do some calls through the continuum xml-rpc interface
> from Ruby, but I wasn't able to figure out the mapping between the
> java methods and the xml-rpc methods
>
> For instance, trying to call
> client.buildProject( 1 );
>
> with method names
>
> buildProject
> build_project
> buildproject
>
> all return a "No such handler" error
>
> any idea what would be?
>
> btw my ruby code is
>
>    require 'xmlrpc/client'
>    uri = "http://#{CONTINUUM_USERNAME}:#{CONTINUUM_PASSWORD}@#{CONTINUUM_HOST}:#{CONTINUUM_PORT}/continuum/xmlrpc"
>    client = XMLRPC::Client.new2(uri)
>    Hash result = client.call("buildproject","1")
>

Mime
View raw message