[vbox-dev] SOAP Issues

James Lucas jimmy at secsme.org.au
Fri Jan 23 23:05:33 GMT 2009


Could someone else please test this and let me know what you get. I call
IMachine_getNextExtraDataKey(null) with PHP SoapClient. This generates the
request with the an empty key value tag <key/> however the vbox webservice
throws a soap exception looking for a empty string '' instead of returning the
first key as per the SDK documentation. Is the PHP SOAP Client generating the
incorrect parameter tag for the key value or is the vbox webservice incorrectly
converting this parameter into an empty string instead of a NULL?

- James

SDK Documentation
6.27.17 getNextExtraDataKey 
void IMachine::getNextExtraDataKey( 
[in] wstring key, 
[out] wstring nextKey, 
[out] wstring nextValue) 
Returns the machine-specific extra data key name following the supplied
key. 
An error is returned if the supplied @a key does not exist. @c NULL is returned
in 
@a nextKey if the supplied key is the last key. When supplying @c NULL for the
@a 
key, the first key item is returned in @a nextKey (if there is any). @a
nextValue is an 
optional parameter and if supplied, the next key’s value is returned in it. 

SOAP Request
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="http://www.virtualbox.org/">
<SOAP-ENV:Body>
<ns1:IMachine_getNextExtraDataKey>
<_this>73be4ed27a5b2995-000000000000000b</_this>
<key/>
</ns1:IMachine_getNextExtraDataKey>
</SOAP-ENV:Body></SOAP-ENV:Envelope>

--
UTS CRICOS Provider Code:  00099F
DISCLAIMER: This email message and any accompanying attachments may contain
confidential information.  If you are not the intended recipient, do not
read, use, disseminate, distribute or copy this message or attachments.  If
you have received this message in error, please notify the sender
immediately and delete this message. Any views expressed in this message
are those of the individual sender, except where the sender expressly, and
with authority, states them to be the views the University of Technology,
Sydney. Before opening any attachments, please check them for viruses and
defects.




More information about the vbox-dev mailing list