Hi Rafal,
Iâm not sure which client library youâre using, but I know the python library adds the session ID into the list of arguments for you, so youâd only have to call session.xenapi.VM.start(vmRef, True, True)
John
From: xen-api-bounces@xxxxxxxxxxxxx [mailto:xen-api-bounces@xxxxxxxxxxxxx] On Behalf Of Rafal Michalak
Sent: 18 April 2013 11:12
To: xen-api@xxxxxxxxxxxxx
Subject: [Xen-API] VM.start and MESSAGE_PARAMETER_COUNT_MISMATCH
When I send VM.start with params (sessionId, vmRef, true, true)
I've got MESSAGE_PARAMETER_COUNT_MISMATCH
What is the cause of the error ?
<?xml version="1.0" encoding="UTF-8"?><methodCall><methodName>VM.start</methodName><params><param><value>78d1d27e-ee13-ab41-766c-39ca1660e0fb</value></param><param><value>e7c5a6ce-7e3d-62f2-478d-de990dd29fe1</value></param><param><value><boolean>1</boolean></value></param><param><value><boolean>1</boolean></value></param></params></methodCall>
<value><string>Failure</string></value>
<name>ErrorDescription</name>
<value><string>MESSAGE_PARAMETER_COUNT_MISMATCH</string></value>
<value><string>VM.start</string></value>
<value><string>3</string></value>
<value><string>4</string></value>
Thanks