Changeset 28823 in vbox
- Timestamp:
- Apr 27, 2010 1:46:35 PM (15 years ago)
- Location:
- trunk/src/VBox/Main/webservice
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/webservice/types.txt
r20888 r28823 1 1 2 XIDL IPRT COM XPCOM WSDL gSOAP default JAX-WS 2 XIDL IPRT COM XPCOM WSDL gSOAP default JAX-WS PHP 3 3 4 boolean BOOL PRBool xsd:boolean bool Boolean 4 boolean BOOL PRBool xsd:boolean bool Boolean boolean 5 5 6 octet uint8_t BYTE PRUint8 xsd:unsignedByte Short 6 octet uint8_t BYTE PRUint8 xsd:unsignedByte Short integer 7 7 8 short int16_t SHORT PRInt16 xsd:short short Short (2) 9 unsigned short uint16_t USHORT PRUint16 xsd:unsignedShort unsigned short Integer (2) 10 long int32_t LONG PRInt32 xsd:int int Integer (2) 11 unsigned long uint32_t ULONG PRUint32 xsd:unsignedInt unsigned int Long (2) 12 long long int64_t LONG64 PRInt64 xsd:long long long Long (2) 13 unsigned long long uint64_t ULONG64 PRUint64 xsd:unsignedLong unsigned long long BigInteger (2) 8 short int16_t SHORT PRInt16 xsd:short short Short (2) integer 9 unsigned short uint16_t USHORT PRUint16 xsd:unsignedShort unsigned short Integer (2) integer 10 long int32_t LONG PRInt32 xsd:int int Integer (2) integer 11 unsigned long uint32_t ULONG PRUint32 xsd:unsignedInt unsigned int Long (2) float (3) 12 long long int64_t LONG64 PRInt64 xsd:long long long Long (2) float (3) 13 unsigned long long uint64_t ULONG64 PRUint64 xsd:unsignedLong unsigned long long BigInteger (2) float (3) 14 14 15 double xsd:double double Double 16 float xsd:float float Float 15 double xsd:double double Double float 16 float xsd:float float Float float 17 17 18 wstring BSTR PRUnichar* xsd:string std::string String 18 wstring BSTR PRUnichar* xsd:string std::string String string 19 19 20 result xsd:unsignedInt(1) (undefined) 20 result xsd:unsignedInt(1) (undefined) 21 21 22 22 uuid xsd:string(1) (undefined) … … 26 26 (2) Java "Short" is signed 16-bit integer; since Java has no support for unsigned types, we need to use the 27 27 next bigger class, which is Integer, for IPRT uint16_t. Similarly for the other integer types. 28 (3) PHP does not support unsigned integers; Size of integer is platform-dependant, usual value of at least 32-bits signed. Use float for numbers greeted that signed 32-bit int 28 29 29 30 -
trunk/src/VBox/Main/webservice/websrv-php.xsl
r28800 r28823 10 10 web service API. Depends on WSDL file for actual SOAP bindings. 11 11 12 Contributed by James Lucas (mjlucas at eng.uts.edu.au).13 14 Copyright (C) 200 9Oracle Corporation12 Contributed by James Lucas (mjlucas at eng.uts.edu.au). 13 14 Copyright (C) 2006-2010 Oracle Corporation 15 15 16 16 This file is part of VirtualBox Open Source Edition (OSE), as … … 55 55 </xsl:call-template> 56 56 </xsl:when> 57 <xsl:when test="$type=' long' or $type='unsigned long' or $type='long long' or $type='short' or $type='unsigned short' or $type='unsigned long long' or $type='result'">57 <xsl:when test="$type='short' or $type='unsigned short' or $type='long' or $type='octet'"> 58 58 <xsl:call-template name="emitPrimitive"> 59 59 <xsl:with-param name="type">int</xsl:with-param> … … 62 62 </xsl:call-template> 63 63 </xsl:when> 64 <xsl:when test="$type='double' or $type='float' ">64 <xsl:when test="$type='double' or $type='float' or $type='unsigned long' or $type='long long' or $type='unsigned long long'"> 65 65 <xsl:call-template name="emitPrimitive"> 66 66 <xsl:with-param name="type">float</xsl:with-param> 67 <xsl:with-param name="value" select="$value" />68 <xsl:with-param name="safearray" select="$safearray"/>69 </xsl:call-template>70 </xsl:when>71 <xsl:when test="$type='octet'">72 <xsl:call-template name="emitPrimitive">73 <xsl:with-param name="type">octet</xsl:with-param>74 67 <xsl:with-param name="value" select="$value" /> 75 68 <xsl:with-param name="safearray" select="$safearray"/> … … 81 74 <xsl:with-param name="value" select="$value" /> 82 75 <xsl:with-param name="safearray" select="$safearray"/> 83 </xsl:call-template> 76 </xsl:call-template> 84 77 </xsl:when> 85 78 <xsl:otherwise> … … 88 81 <xsl:with-param name="value" select="$value" /> 89 82 <xsl:with-param name="safearray" select="$safearray"/> 90 </xsl:call-template> 83 </xsl:call-template> 91 84 </xsl:otherwise> 92 85 </xsl:choose> … … 452 445 } 453 446 454 /** ArrayAccess Functions **/ 447 /** ArrayAccess Functions **/ 455 448 public function offsetSet($offset, $value) { 456 449 if ($value instanceof $this->_interfaceName) … … 464 457 $this->_objects[] = $value; 465 458 } 466 } 459 } 467 460 else 468 461 {
Note:
See TracChangeset
for help on using the changeset viewer.