[vbox-dev] How to RevertToCurrentSnapshot using original Java WSDL API
Jiri Tusla
jiri.tusla at seznam.cz
Wed Aug 20 03:11:20 PDT 2008
Resolved on my own.
> ------------ Původní zpráva ------------
> Od: Jiri TUSLA <jiri.tusla at seznam.cz>
> Předmět: [vbox-dev] How to RevertToCurrentSnapshot using original Java WSDL API
> Datum: 19.8.2008 22:03:36
> ----------------------------------------
> Hi,
>
> I'm trying to do some automation and have following snippet of code
>
> void doRevert(String machineUUID) {
> VboxService service = new VboxService();
> VboxPortType port = service.getVboxServicePort();
>
> try {
> System.out.println("Reverting " + machineUUID);
> String box = port.iWebsessionManagerLogon("", "");
>
> port.iConsoleDiscardCurrentState(_this);
>
> port.iWebsessionManagerLogoff(box);
> } catch (InvalidObjectFaultMsg ex) {
> Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
> } catch (RuntimeFaultMsg ex) {
> Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
> }
> }
>
> I'm not able to find the way from the machine to it's respective console
> to be able to use method iConsoleDiscardCurrentState. I suppose that
> it's parameter "_this" is a reference to the Console.
>
> But where to get it... That's the question.
>
> Currently working with VirtualBox 1.6.4.
>
> Thanks in advance,
>
> JiT
>
> _______________________________________________
> vbox-dev mailing list
> vbox-dev at virtualbox.org
> http://vbox.innotek.de/mailman/listinfo/vbox-dev
>
>
>
More information about the vbox-dev
mailing list