[one-users] Xmlrpc Lib

Javier Fontan jfontan at gmail.com
Thu Dec 17 08:35:52 PST 2009


Checking java xmlrpc documentation and this tutorial it seems that
execute returns an object that you may have to cast to the correct
class:

http://www.wordtracker.com/docs/api/ch03s02.html

xmlrpc api returns an array with call status and information, maybe
that is the problem.

I have never used java xmlrpc library anyway and I could be completely
wrong here.

On Thu, Dec 17, 2009 at 4:10 AM, hd nguyen <nguyenhd2107 at gmail.com> wrote:
>
> Hi all,
> I have a test Program to test XmlRpc API in Open Nebula as bellow:
> XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
>             config.setServerURL(new URL("http://192.168.1.41:2633/RPC2"));
>             XmlRpcClient client = new XmlRpcClient();
>             client.setConfig(config);
>
> Vector params = new Vector();
>
> params.addElement("oneadmint:7c4a8d09ca3762af61e59520943dc26494f8941b");
>             params.addElement(4);
>
>             Object result = client.execute( "one.host.info", params );
>
>                 System.out.println(result.getClass().getName());
>
>             if ( result != null )
>                 System.out.println( result.toString() );
>
> Here is the printed result:
> [Ljava.lang.Obj
> ect;@97a560
>
> This result 's  printed with any invoked method.
> Could you please clarify this problem for me?
> Thanks for all,
> Regards,
> DuyNH
> --
> "The love makes the life better"
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>



-- 
Javier Fontan, Grid & Virtualization Technology Engineer/Researcher
DSA Research Group: http://dsa-research.org
Globus GridWay Metascheduler: http://www.GridWay.org
OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org


More information about the Users mailing list