[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-API] RPC::XML datatype error in PERL



Hello,

Im using RPC::XML in PERL language to connect to xen-api interface and

trying to set live vpus of a VM with following line

$xen->simple_request("VM.set_VCPUs_number_live",$session,$vm_ref,"5")

but getting
xmlrpc failed! ErrorDescription: nvcpu -> FIELD_TYPE_ERROR


and when I check the xensource.log its showing

|error|xcp1-slave2|94250 inet_rpc|dispatch:VM.set_VCPUs_number_live
D:f9a552386e92|xmlrpc] Error: name='unbox: Element=int should contain
'string''; xml= <int>5</int>

what I understood from this is that the "simple_request" is converting
"5" to <int>5</int> while making a RPC request but I want to keept it as
string.

Can somebody help me in this ?


R

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.