Index: /trunk/src/VBox/Main/webservice/websrv-cpp.xsl
===================================================================
--- /trunk/src/VBox/Main/webservice/websrv-cpp.xsl	(revision 22664)
+++ /trunk/src/VBox/Main/webservice/websrv-cpp.xsl	(revision 22665)
@@ -248,5 +248,5 @@
     <xsl:call-template name="emitPrologue"><xsl:with-param name="fSkipHRESULT" select="'1'"/></xsl:call-template>
 
-    <xsl:value-of select="concat('        resp = soap_new_vbox__', $structname, '(soap, 1);')" />
+    <xsl:value-of select="concat('        resp = soap_new_vbox__', $structname, '(soap, -1);')" />
     <xsl:call-template name="emitNewline" />
     <xsl:call-template name="emitNewline" />
@@ -964,5 +964,5 @@
       <xsl:variable name="collectiontype" select="//collection[@name=$type]/@type" />
       <xsl:variable name="targetwsmap" select="//interface[@name=$collectiontype]/@wsmap" />
-      <xsl:value-of select="concat('soap_new_vbox__ArrayOf', $collectiontype, '(soap, 1);')" />
+      <xsl:value-of select="concat('soap_new_vbox__ArrayOf', $collectiontype, '(soap, -1);')" />
       <xsl:call-template name="emitNewlineIndent8" />
       <xsl:variable name="enumerator" select="concat('comcall_', $callerprefix, $name, '_enum')" />
