<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Jean-Michel Guillaume a écrit :
<blockquote cite="mid:498052B3.40600@sophia.inria.fr" type="cite">
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
Klaus Espenlaub a écrit :
  <blockquote cite="mid:49804973.7080005@sun.com" type="cite">
    <pre wrap="">Hi,

Jean-Michel Guillaume wrote:
  </pre>
    <blockquote type="cite">
      <pre wrap="">Hello everyone.
I try to create a Machine with the VBox webservice sdk

[code]
       VboxServiceLocator service = new VboxServiceLocator();
       VboxPortType port = service.getvboxServicePort(new 
URL(<a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
 href="http://localhost:18083/">"http://localhost:18083/"</a>));
       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: {<a moz-do-not-send="true" class="moz-txt-link-freetext"
 href="http://schemas.xmlsoap.org/soap/envelope/">http://schemas.xmlsoap.org/soap/envelope/</a>}Client
    faultSubcode:
    faultString: VirtualBox error: Guest OS type '' is invalid (0x80bb0001)
    faultActor:
    faultNode:
    faultDetail:
       
{<a moz-do-not-send="true" class="moz-txt-link-freetext"
 href="http://www.virtualbox.org/">http://www.virtualbox.org/</a>}RuntimeFault:<resultCode>-2135228415</resultCode><interfaceID/><component>VirtualBox</component><text>Guest 
OS type '' is invalid</text>
[/code]
    </pre>
    </blockquote>
    <pre wrap=""><!---->
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.

  </pre>
    <blockquote type="cite">
      <pre wrap="">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
    </pre>
    </blockquote>
    <pre wrap=""><!---->
Klaus

_______________________________________________
vbox-dev mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
 href="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
 href="http://vbox.innotek.de/mailman/listinfo/vbox-dev">http://vbox.innotek.de/mailman/listinfo/vbox-dev</a>
  </pre>
  </blockquote>
Thank you Klaus,<br>
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<br>
this method call, you can specify the OS type and finally register the
newly created virtual machine...<br>
At the time this fault occurs, I'm not supposed to have supplied th OS
Type...<br>
  <br>
J-Mi<br>
</blockquote>
Hello everyone<br>
I'm still facing the same issue with vm creation...<br>
Does anybody have a suggestion?<br>
I'm wondering if I have to open a bug repport...<br>
<br>
THX<br>
<br>
J-Mi
</body>
</html>