Bug: IMedium::getEncryptionSettings() variables are backwards for web service

Discussion about using the VirtualBox API, Tutorials, Samples.
Post Reply
SmithersTheOracle
Posts: 60
Joined: 28. Dec 2019, 08:58
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Windows, Linux

Bug: IMedium::getEncryptionSettings() variables are backwards for web service

Post by SmithersTheOracle »

SDKRef for API v6.1.0 page 268 shows IMedium::getEncryptionSettings() taking a variable reference for the cipher and returning the disk ID. When calling this method using the web service, however, it takes a variable reference for the disk ID and returns the cipher. I've confirmed the documentation matches the method when using the VirtualBox.VirtualBox COM object. I'm not sure if this needs to be fixed in the WSDL and WebSrv.exe, but I'll see if I can do some more digging. For now, I've simply reversed my variables and it works.

My VirtualBox version is 6.1.0 and I'm using a Windows host. I'm creating the web service proxy in PowerShell using "$global:vbox = New-WebServiceProxy -Uri "$($env:VBOX_MSI_INSTALL_PATH)sdk\bindings\webservice\vboxwebService.wsdl" -Namespace "VirtualBox" -Class "VirtualBoxWebSrv"".

If further information is needed, let me know and I'll provide it. If this should be added to the bug tracker, let me know and I'll do that too.
Post Reply