[vbox-dev] CreateMachine issue with vboxwebsrv
Klaus Espenlaub
Klaus.Espenlaub at Sun.COM
Wed Jan 28 04:02:59 PST 2009
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
More information about the vbox-dev
mailing list