Page 1 of 1

API - WEBSERVICE - ZSI ?

Posted: 14. Jan 2024, 20:05
by FlorentL
Hello,
I'm a beginner using API.
I have a Linux Server (Alma Linux 9.2) with VirtualBox 7.0.12r159484 and Python 3.9.16 installed.
I want to use the API with webserver.
I first tested the API with xpcom, it works. I wrote a small program and I also use vboxshell Sometimes it crashes with the following message "*** Error in `/usr/bin/python3': corrupted size vs. prev_size: 0x00000000014074d0 ***" but that is not my currently my main problem.
At the moment my problem is with webserver. For instance if I run vboxshell -w.
It crashes File "/usr/lib/virtualbox/sdk/bindings/webservice/python/lib/VirtualBox_client", line 37
raise TypeError, "%s incorrect request type" % (request.__class__)

I copied webservice bindings from sdk to /usr/lib/virtualbox/sdk/bindings/. I don't know why they weren't installed.

I wonder if I must install Python ZSI SOAP. If yes is it compatible with python3 ? How I can install it ?
Thanks in advance,

Re: API - WEBSERVICE - ZSI ?

Posted: 15. Jan 2024, 22:48
by noteirak
Please try with pthon 2.x

Re: API - WEBSERVICE - ZSI ?

Posted: 17. Jan 2024, 23:35
by klaus
Unfortunately there is no SOAP library available for Python 3 which would come close to ZSI (which is for Python 2 only). Everything the dev team looked at would need a ton of work to get something with reasonable functionality. Not saying that one can't do SOAP with Python 3, but it's much more tedious.