[prev in list] [next in list] [prev in thread] [next in thread]
List: vbox-dev
Subject: [vbox-dev] php and webservice
From: "Alexis Gingras" <agingras () torrent-corp ! com>
Date: 2008-12-09 22:46:59
Message-ID: ad669a340812091446o30f9700fyde83974b2e2b9d9e () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hi,
I got a little problem with using the web service.
Code :
<?php
$client = new SoapClient("vboxwebService.wsdl");
$log=$client->IWebsessionManager_logon("","");
$log_array=(array) $log;
$log_client="";
$log_client=$log_array['returnval'];
if ($log_client!="") {
print "Connection To VirtualBox Web Service = Success <br>Connection
id:";
echo $log_client;
}else {
print "Connection To VirtualBox Web Service =failure!";
}
print_r($client->IVirtualBox_getVersion($log_client));
?>
Output :
Connection To VirtualBox Web Service = Success
Connection id:fbf18b2ecf194980-000000000000000c
But nothing from IVirtualBox_getVersion
This is what I got in the console:
9: accepted connection from IP=127.0.0.1 socket=9... #### SOAP FAULT:
VirtualBox error: Invalid managed object reference "" [SOAP-ENV:Client]
Request served
And the apache error log :
[Tue Dec 09 17:16:59 2008] [error] [client 10.205.75.30] PHP Fatal error:
Uncaught SoapFault exception: [SOAP-ENV:Client] VirtualBox error: Invalid
managed object reference "" in /var/www/html/index.php:19\nStack trace:\n#0
[internal function]: SoapClient->__call('IVirtualBox_get...', Array)\n#1
/var/www/html/index.php(19):
SoapClient->IVirtualBox_getVersion('fbf18b2ecf19498...')\n#2 {main}\n
thrown in /var/www/html/index.php on line 19
Any help would be greatly appreciated!
A.G.
--
Alexis Gingras
[Attachment #5 (text/html)]
Hi,<br>I got a little problem with using the web service. <br><br>Code : \
<br><?php<br>$client = new \
SoapClient("vboxwebService.wsdl");<br>$log=$client->IWebsessionManager_logon("","");<br>
$log_array=(array) $log;<br>$log_client="";<br>$log_client=$log_array['returnval'];<br>if \
($log_client!="") {<br> print "Connection To \
VirtualBox Web Service = Success <br>Connection id:";<br> \
echo $log_client;<br>}else {<br> print \
"Connection To VirtualBox Web Service \
=failure!";<br>}<br>print_r($client->IVirtualBox_getVersion($log_client));<br>?><br>Output \
: <br>Connection To VirtualBox Web Service = Success <br> Connection \
id:fbf18b2ecf194980-000000000000000c<br clear="all"><br>But nothing from \
IVirtualBox_getVersion<br><br>This is what I got in the console: <br>9: accepted \
connection from IP=<a href="http://127.0.0.1">127.0.0.1</a> socket=9... #### SOAP \
FAULT: VirtualBox error: Invalid managed object reference "" \
[SOAP-ENV:Client]<br> Request served<br> And the apache error log : <br>[Tue Dec \
09 17:16:59 2008] [error] [client <a href="http://10.205.75.30">10.205.75.30</a>] PHP \
Fatal error: Uncaught SoapFault exception: [SOAP-ENV:Client] VirtualBox error: \
Invalid managed object reference "" in /var/www/html/index.php:19\nStack \
trace:\n#0 [internal function]: SoapClient->__call('IVirtualBox_get...', \
Array)\n#1 /var/www/html/index.php(19): \
SoapClient->IVirtualBox_getVersion('fbf18b2ecf19498...')\n#2 \
{main}\n thrown in /var/www/html/index.php on line 19<br> <br>Any help would be \
greatly appreciated! <br>A.G.<br>-- <br>Alexis Gingras<br><br><br><br>
_______________________________________________
vbox-dev mailing list
vbox-dev@virtualbox.org
http://vbox.innotek.de/mailman/listinfo/vbox-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic