Changeset 44160 in vbox for trunk/src/VBox/Main
- Timestamp:
- Dec 19, 2012 10:37:00 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/webservice/websrv-wsdl.xsl
r43103 r44160 94 94 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 95 95 xmlns:xsd="http://www.w3.org/2001/XMLSchema" 96 xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 96 97 xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 97 98 xmlns:vbox="http://www.virtualbox.org/" … … 461 462 <xsl:param name="_valuetype" /> <!-- optional, for attribute setter messages --> 462 463 463 < message>464 <wsdl:message> 464 465 <xsl:attribute name="name"><xsl:value-of select="concat($_ifname, $G_classSeparator, $_methodname, $G_methodRequest)" /></xsl:attribute> 465 466 … … 470 471 <xsl:with-param name="type" select="$G_typeIsGlobalRequestElementMarker" /> 471 472 <xsl:with-param name="safearray" select="'no'" /> 472 <xsl:with-param name="elname" select="' part'" /> <!-- "part" or "element" -->473 <xsl:with-param name="elname" select="'wsdl:part'" /> <!-- "part" or "element" --> 473 474 <xsl:with-param name="attrname" select="'element'" /> <!-- attrib of part of element: <part type=...> or <part element=...> or <element type=...> --> 474 475 </xsl:call-template> 475 </ message>476 </wsdl:message> 476 477 </xsl:template> 477 478 … … 486 487 <xsl:param name="_resulttype" /> <!-- for attribute getter methods only --> 487 488 488 < message>489 <wsdl:message> 489 490 <xsl:attribute name="name"><xsl:copy-of select="$_ifname" /><xsl:value-of select="$G_classSeparator" /><xsl:value-of select="$_methodname" /><xsl:copy-of select="$G_methodResponse" /></xsl:attribute> 490 491 … … 496 497 <xsl:with-param name="type" select="$G_typeIsGlobalResponseElementMarker" /> 497 498 <xsl:with-param name="safearray" select="'no'" /> 498 <xsl:with-param name="elname" select="' part'" /> <!-- "part" or "element" -->499 <xsl:with-param name="elname" select="'wsdl:part'" /> <!-- "part" or "element" --> 499 500 <xsl:with-param name="attrname" select="'element'" /> <!-- attrib of part of element: <part type=...> or <part element=...> or <element type=...> --> 500 501 </xsl:call-template> 501 </ message>502 </wsdl:message> 502 503 </xsl:template> 503 504 … … 544 545 <xsl:with-param name="_params" select="/.." /> <!-- empty set --> 545 546 <xsl:with-param name="_valuetype" select="$attrtype" /> 546 <xsl:with-param name="elname" select="' part'" /> <!-- "part" or "element" -->547 <xsl:with-param name="elname" select="'wsdl:part'" /> <!-- "part" or "element" --> 547 548 </xsl:call-template> 548 549 <xsl:call-template name="emitResultMessage"> … … 550 551 <xsl:with-param name="_methodname" select="$attrSetter" /> 551 552 <xsl:with-param name="_params" select="/.." /> <!-- empty set --> 552 <xsl:with-param name="elname" select="' part'" /> <!-- "part" or "element" -->553 <xsl:with-param name="elname" select="'wsdl:part'" /> <!-- "part" or "element" --> 553 554 </xsl:call-template> 554 555 </xsl:template> … … 567 568 <xsl:call-template name="debugMsg"><xsl:with-param name="msg" select="concat('....emitInOutOperation ', $_ifname, '::', $_methodname)" /></xsl:call-template> 568 569 569 < operation>570 <wsdl:operation> 570 571 <xsl:attribute name="name"> 571 572 <xsl:value-of select="concat($_ifname, '_', $_methodname)" /> … … 578 579 </soap:operation> 579 580 </xsl:if> 580 < input>581 <wsdl:input> 581 582 <xsl:choose> 582 583 <xsl:when test="$_fSoap"> … … 590 591 </xsl:otherwise> 591 592 </xsl:choose> 592 </ input>593 </wsdl:input> 593 594 <xsl:choose> 594 595 <xsl:when test="$_resulttype"> 595 < output>596 <wsdl:output> 596 597 <xsl:choose> 597 598 <xsl:when test="$_fSoap"> … … 605 606 </xsl:otherwise> 606 607 </xsl:choose> 607 </ output>608 </wsdl:output> 608 609 </xsl:when> 609 610 <xsl:otherwise> 610 611 <!-- <xsl:if test="count($_params[@dir='out'] | $_params[@dir='return']) > 0"> --> 611 < output>612 <wsdl:output> 612 613 <xsl:choose> 613 614 <xsl:when test="$_fSoap"> … … 621 622 </xsl:otherwise> 622 623 </xsl:choose> 623 </ output>624 </wsdl:output> 624 625 <!-- </xsl:if> --> 625 626 </xsl:otherwise> … … 627 628 <xsl:choose> 628 629 <xsl:when test="not($_fSoap)"> 629 < fault name="InvalidObjectFault" message="vbox:InvalidObjectFaultMsg" />630 < fault name="RuntimeFault" message="vbox:RuntimeFaultMsg" />630 <wsdl:fault name="InvalidObjectFault" message="vbox:InvalidObjectFaultMsg" /> 631 <wsdl:fault name="RuntimeFault" message="vbox:RuntimeFaultMsg" /> 631 632 </xsl:when> 632 633 <xsl:otherwise> 633 < fault name="InvalidObjectFault">634 <wsdl:fault name="InvalidObjectFault"> 634 635 <soap:fault name="InvalidObjectFault"> 635 636 <xsl:attribute name="use"><xsl:value-of select="$G_parmfmt" /></xsl:attribute> 636 637 </soap:fault> 637 </ fault>638 < fault name="RuntimeFault">638 </wsdl:fault> 639 <wsdl:fault name="RuntimeFault"> 639 640 <soap:fault name="RuntimeFault"> 640 641 <xsl:attribute name="use"><xsl:value-of select="$G_parmfmt" /></xsl:attribute> 641 642 </soap:fault> 642 </ fault>643 </wsdl:fault> 643 644 </xsl:otherwise> 644 645 </xsl:choose> 645 </ operation>646 </wsdl:operation> 646 647 </xsl:template> 647 648 … … 743 744 <xsl:with-param name="_methodname" select="$methodname" /> 744 745 <xsl:with-param name="_params" select="param" /> 745 <xsl:with-param name="elname" select="' part'" /> <!-- "part" or "element" -->746 <xsl:with-param name="elname" select="'wsdl:part'" /> <!-- "part" or "element" --> 746 747 </xsl:call-template> 747 748 <!-- emit a second "result" message only if the method has "out" arguments or a return value --> … … 752 753 <xsl:with-param name="_methodname" select="@name" /> 753 754 <xsl:with-param name="_params" select="param" /> 754 <xsl:with-param name="elname" select="' part'" /> <!-- "part" or "element" -->755 <xsl:with-param name="elname" select="'wsdl:part'" /> <!-- "part" or "element" --> 755 756 </xsl:call-template> 756 757 <!-- </xsl:if> --> … … 957 958 --> 958 959 <xsl:template match="library"> 959 < definitions960 <wsdl:definitions 960 961 name="VirtualBox" 961 962 xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> 962 <xsl:attribute name="xmlns">http://schemas.xmlsoap.org/wsdl/</xsl:attribute>963 963 <xsl:attribute name="targetNamespace"><xsl:value-of select="$G_targetNamespace" /></xsl:attribute> 964 964 <!-- at top of WSDL file, dump a <types> section with user-defined types --> … … 970 970 ****************************************************** 971 971 </xsl:comment> 972 < types>972 <wsdl:types> 973 973 <xsd:schema> 974 974 <xsl:attribute name="targetNamespace"><xsl:value-of select='$G_targetNamespace' /></xsl:attribute> … … 1194 1194 1195 1195 1196 </ types>1197 1198 < message name="InvalidObjectFaultMsg">1199 < part name="fault" element="vbox:InvalidObjectFault" />1200 </ message>1201 < message name="RuntimeFaultMsg">1202 < part name="fault" element="vbox:RuntimeFault" />1203 </ message>1196 </wsdl:types> 1197 1198 <wsdl:message name="InvalidObjectFaultMsg"> 1199 <wsdl:part name="fault" element="vbox:InvalidObjectFault" /> 1200 </wsdl:message> 1201 <wsdl:message name="RuntimeFaultMsg"> 1202 <wsdl:part name="fault" element="vbox:RuntimeFault" /> 1203 </wsdl:message> 1204 1204 1205 1205 <xsl:comment> … … 1242 1242 </xsl:comment> 1243 1243 1244 < portType>1244 <wsdl:portType> 1245 1245 <xsl:attribute name="name"><xsl:copy-of select="'vbox'" /><xsl:value-of select="$G_portTypeSuffix" /></xsl:attribute> 1246 1246 … … 1262 1262 </xsl:if> 1263 1263 </xsl:for-each> 1264 </ portType>1264 </wsdl:portType> 1265 1265 1266 1266 <xsl:comment> … … 1272 1272 </xsl:comment> 1273 1273 1274 < binding>1274 <wsdl:binding> 1275 1275 <xsl:attribute name="name"><xsl:value-of select="concat('vbox', $G_bindingSuffix)" /></xsl:attribute> 1276 1276 <xsl:attribute name="type"><xsl:value-of select="concat('vbox:vbox', $G_portTypeSuffix)" /></xsl:attribute> … … 1298 1298 </xsl:if> 1299 1299 </xsl:for-each> 1300 </ binding>1301 1302 </ definitions>1300 </wsdl:binding> 1301 1302 </wsdl:definitions> 1303 1303 </xsl:template> 1304 1304
Note:
See TracChangeset
for help on using the changeset viewer.