Klaus Espenlaub a écrit :
Hi,

Jean-Michel Guillaume wrote:
  
Hello everyone.
I try to create a Machine with the VBox webservice sdk

[code]
       VboxServiceLocator service = new VboxServiceLocator();
       VboxPortType port = service.getvboxServicePort(new 
URL("http://localhost:18083/"));
       String oVbox = port.IWebsessionManager_logon("","");
       String machine = 
port.IVirtualBox_createMachine(oVbox,"","Clone","");
[/code]

but get the following error:

[code]
   Exception in thread "main" AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
    faultSubcode:
    faultString: VirtualBox error: Guest OS type '' is invalid (0x80bb0001)
    faultActor:
    faultNode:
    faultDetail:
       
{http://www.virtualbox.org/}RuntimeFault:<resultCode>-2135228415</resultCode><interfaceID/><component>VirtualBox</component><text>Guest 
OS type '' is invalid</text>
[/code]
    

This error message is perfectly clear. The empty string is invalid as a 
guest os type. If you don't want to specify anything in particular, use 
"Other".

If you want to know the list of valid os types, there's an API for 
querying this.

  
from axis, and this one on the service output:

[code]
   API return code:            0x80BB0001 (VBOX_E_OBJECT_NOT_FOUND)
   COM error info result code: 0x80BB0001
   COM error info text:        Guest OS type '' is invalid
   4: accepted connection from IP=127.0.0.1 socket=9... #### SOAP FAULT: 
VirtualBox error: Guest OS type '' is invalid (0x80bb0001) 
[SOAP-ENV:Client]
[/code]
...
Am I mistaken?
THX
    

Klaus

_______________________________________________
vbox-dev mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-dev
  
Thank you Klaus,
in the api, it's just said that the first parameter is ( after the _this string ) is the VM's directory, the second is the VM's name and the third is the UUID. The doc also suggest to let the directory and the uuid empty. Only once you've get a machine's ref through
this method call, you can specify the OS type and finally register the newly created virtual machine...
At the time this fault occurs, I'm not supposed to have supplied th OS Type...

J-Mi
begin:vcard
fn:Jean-Michel Guillaume
n:Guillaume;Jean-Michel
org:ActiveEon SAS
adr:B.P.93;;2004 route des Lucioles;Sophia Antipolis;;06902;France
email;internet:[email protected]
tel;work:+33 (0)4 97 15 53 84
tel;cell:+33 (0)6 20 37 59 62
url:http://www.activeeon.com
version:2.1
end:vcard

_______________________________________________
vbox-dev mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-dev

Reply via email to