WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

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

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] RPC::XML datatype error in PERL
From: Rushikesh <rushikesh.jadhav@xxxxxxxxxx>
Date: Wed, 30 Mar 2011 23:20:52 +0530
Delivery-date: Wed, 30 Mar 2011 10:51:08 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100528 Thunderbird/3.0.5
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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-API] RPC::XML datatype error in PERL, Rushikesh <=