VirtualBox

source: vbox/trunk/src/VBox/Main/webservice/websrv-wsdl-service.xsl@ 26902

Last change on this file since 26902 was 26370, checked in by vboxsync, 15 years ago

Webservice: code documentation

  • Property svn:eol-style set to native
File size: 5.8 KB
Line 
1<?xml version="1.0"?>
2
3<!--
4
5 websrv-wsdl.xsl:
6 XSLT stylesheet that generates vboxwebService.wsdl from
7 VirtualBox.xidl. That extra WSDL file includes the big
8 vboxweb.wsdl file and adds a "service" section.
9 See webservice/Makefile.kmk for an overview of all the things
10 generated for the webservice.
11
12 Copyright (C) 2006-2010 Sun Microsystems, Inc.
13
14 This file is part of VirtualBox Open Source Edition (OSE), as
15 available from http://www.virtualbox.org. This file is free software;
16 you can redistribute it and/or modify it under the terms of the GNU
17 General Public License (GPL) as published by the Free Software
18 Foundation, in version 2 as it comes in the "COPYING" file of the
19 VirtualBox OSE distribution. VirtualBox OSE is distributed in the
20 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
21
22 Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
23 Clara, CA 95054 USA or visit http://www.sun.com if you need
24 additional information or have any questions.
25-->
26
27<xsl:stylesheet
28 version="1.0"
29 targetNamespace="http://schemas.xmlsoap.org/wsdl/"
30 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
31 xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
32
33<xsl:param name="G_argDebug" />
34
35<xsl:output
36 method="xml"
37 version="1.0"
38 encoding="utf-8"
39 indent="yes"/>
40
41<xsl:strip-space
42 elements="*" />
43
44<!--**********************************************************************
45 *
46 * global XSLT variables
47 *
48 **********************************************************************-->
49
50<xsl:variable name="G_xsltFilename" select="'websrv-wsdl-service.xsl'" />
51
52<xsl:include href="websrv-shared.inc.xsl" />
53
54<!-- collect all interfaces with "wsmap='suppress'" in a global variable for
55 quick lookup -->
56<xsl:variable name="G_setSuppressedInterfaces"
57 select="//interface[@wsmap='suppress']" />
58
59<!--**********************************************************************
60 *
61 * shared helpers
62 *
63 **********************************************************************-->
64
65
66<!--**********************************************************************
67 *
68 * matches
69 *
70 **********************************************************************-->
71
72<!--
73A WSDL document describes a web service using these major elements:
74Element Defines
75<portType> The operations performed by the web service. A portType can be thought
76 of as a class.
77<message> The messages used by the web service. A message is a function call
78 and with it come "parts", which are the parameters.
79<types> The data types used by the web service, described in XML Schema
80 syntax.
81<binding> The communication protocols used by the web service.
82
83The root tag is <definitions>.
84
85-->
86
87<xsl:template match="/idl">
88 <xsl:comment>
89 DO NOT EDIT! This is a generated file.
90 Generated from: src/VBox/Main/idl/VirtualBox.xidl (VirtualBox's generic pseudo-IDL file)
91 Generator: src/VBox/Main/webservice/websrv-wsdl-service.xsl
92</xsl:comment>
93 <xsl:apply-templates />
94</xsl:template>
95
96<!-- - - - - - - - - - - - - - - - - - - - - - -
97 if
98 - - - - - - - - - - - - - - - - - - - - - - -->
99
100<!--
101 * ignore all |if|s except those for WSDL target
102-->
103<xsl:template match="if">
104 <xsl:if test="@target='wsdl'">
105 <xsl:apply-templates/>
106 </xsl:if>
107</xsl:template>
108
109<!-- - - - - - - - - - - - - - - - - - - - - - -
110 cpp
111 - - - - - - - - - - - - - - - - - - - - - - -->
112
113<xsl:template match="cpp">
114<!-- ignore this -->
115</xsl:template>
116
117<!-- - - - - - - - - - - - - - - - - - - - - - -
118 library
119 - - - - - - - - - - - - - - - - - - - - - - -->
120
121<!--
122 "library" match: we use this to emit most of the WSDL <types> section.
123 With WSDL "document" style, this requires us to go through all interfaces
124 and emit complexTypes for all method arguments and return values.
125-->
126<xsl:template match="library">
127 <definitions xmlns:interface="urn:vbox"
128 xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
129 xmlns:vbox="http://www.virtualbox.org/"
130 name="VirtualBox"
131 xmlns="http://schemas.xmlsoap.org/wsdl/">
132 <xsl:attribute name="targetNamespace"><xsl:value-of select="concat($G_targetNamespace, 'Service')" /></xsl:attribute>
133
134 <import location="vboxweb.wsdl" namespace="urn:vbox">
135 <xsl:attribute name="namespace"><xsl:value-of select="$G_targetNamespace" /></xsl:attribute>
136 </import>
137
138 <service name="vboxService">
139 <port>
140 <xsl:attribute name="binding"><xsl:value-of select="concat('vbox:vbox', $G_bindingSuffix)" /></xsl:attribute>
141 <xsl:attribute name="name"><xsl:value-of select="concat('vbox', 'ServicePort')" /></xsl:attribute>
142 <soap:address location="http://localhost:18083/"/>
143 </port>
144 </service>
145
146 </definitions>
147</xsl:template>
148
149<!-- - - - - - - - - - - - - - - - - - - - - - -
150 class
151 - - - - - - - - - - - - - - - - - - - - - - -->
152
153<xsl:template match="module/class">
154 <!-- swallow -->
155</xsl:template>
156
157<!-- - - - - - - - - - - - - - - - - - - - - - -
158 enum
159 - - - - - - - - - - - - - - - - - - - - - - -->
160
161<xsl:template match="enum">
162 <!-- swallow -->
163</xsl:template>
164
165<!-- - - - - - - - - - - - - - - - - - - - - - -
166 const
167 - - - - - - - - - - - - - - - - - - - - - - -->
168
169<!--
170<xsl:template match="const">
171 <xsl:apply-templates />
172</xsl:template>
173-->
174
175<!-- - - - - - - - - - - - - - - - - - - - - - -
176 desc
177 - - - - - - - - - - - - - - - - - - - - - - -->
178
179<xsl:template match="desc">
180 <!-- swallow -->
181</xsl:template>
182
183<!-- - - - - - - - - - - - - - - - - - - - - - -
184 note
185 - - - - - - - - - - - - - - - - - - - - - - -->
186
187<xsl:template match="note">
188 <!-- swallow -->
189</xsl:template>
190
191<!-- - - - - - - - - - - - - - - - - - - - - - -
192 interface
193 - - - - - - - - - - - - - - - - - - - - - - -->
194
195<xsl:template match="interface">
196</xsl:template>
197
198</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette