javaee_web_services_1_3.xsd 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsd:schema xmlns="http://www.w3.org/2001/XMLSchema"
  3. targetNamespace="http://java.sun.com/xml/ns/javaee"
  4. xmlns:javaee="http://java.sun.com/xml/ns/javaee"
  5. xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  6. elementFormDefault="qualified"
  7. attributeFormDefault="unqualified"
  8. version="1.3">
  9. <xsd:annotation>
  10. <xsd:documentation>
  11. $Id$
  12. </xsd:documentation>
  13. </xsd:annotation>
  14. <xsd:annotation>
  15. <xsd:documentation>
  16. DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
  17. Copyright 2003-2009 Sun Microsystems, Inc. All rights reserved.
  18. The contents of this file are subject to the terms of either the
  19. GNU General Public License Version 2 only ("GPL") or the Common
  20. Development and Distribution License("CDDL") (collectively, the
  21. "License"). You may not use this file except in compliance with
  22. the License. You can obtain a copy of the License at
  23. https://glassfish.dev.java.net/public/CDDL+GPL.html or
  24. glassfish/bootstrap/legal/LICENSE.txt. See the License for the
  25. specific language governing permissions and limitations under the
  26. License.
  27. When distributing the software, include this License Header
  28. Notice in each file and include the License file at
  29. glassfish/bootstrap/legal/LICENSE.txt. Sun designates this
  30. particular file as subject to the "Classpath" exception as
  31. provided by Sun in the GPL Version 2 section of the License file
  32. that accompanied this code. If applicable, add the following
  33. below the License Header, with the fields enclosed by brackets []
  34. replaced by your own identifying information:
  35. "Portions Copyrighted [year] [name of copyright owner]"
  36. Contributor(s):
  37. If you wish your version of this file to be governed by only the
  38. CDDL or only the GPL Version 2, indicate your decision by adding
  39. "[Contributor] elects to include this software in this
  40. distribution under the [CDDL or GPL Version 2] license." If you
  41. don't indicate a single choice of license, a recipient has the
  42. option to distribute your version of this file under either the
  43. CDDL, the GPL Version 2 or to extend the choice of license to its
  44. licensees as provided above. However, if you add GPL Version 2
  45. code and therefore, elected the GPL Version 2 license, then the
  46. option applies only if the new code is made subject to such
  47. option by the copyright holder.
  48. </xsd:documentation>
  49. </xsd:annotation>
  50. <xsd:annotation>
  51. <xsd:documentation>
  52. (C) Copyright International Business Machines Corporation 2002
  53. </xsd:documentation>
  54. </xsd:annotation>
  55. <xsd:annotation>
  56. <xsd:documentation>
  57. <![CDATA[[
  58. The webservices element is the root element for the web services
  59. deployment descriptor. It specifies the set of web service
  60. descriptions that are to be deployed into the Java EE Application
  61. Server and the dependencies they have on container resources and
  62. services. The deployment descriptor must be named
  63. "META-INF/webservices.xml" in the web services' jar file.
  64. Used in: webservices.xml
  65. All webservices deployment descriptors must indicate the
  66. webservices schema by using the Java EE namespace:
  67. http://java.sun.com/xml/ns/javaee
  68. and by indicating the version of the schema by using the version
  69. element as shown below:
  70. <webservices xmlns="http://java.sun.com/xml/ns/javaee"
  71. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  72. xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
  73. http://java.sun.com/xml/ns/javaee/javaee_web_services_1_3.xsd"
  74. version="1.3">
  75. ...
  76. </webservices>
  77. The instance documents may indicate the published version of the
  78. schema using the xsi:schemaLocation attribute for the Java EE
  79. namespace with the following location:
  80. http://java.sun.com/xml/ns/javaee/javaee_web_services_1_3.xsd
  81. ]]>
  82. </xsd:documentation>
  83. </xsd:annotation>
  84. <xsd:annotation>
  85. <xsd:documentation>
  86. The following conventions apply to all Java EE
  87. deployment descriptor elements unless indicated otherwise.
  88. - In elements that specify a pathname to a file within the
  89. same JAR file, relative filenames (i.e., those not
  90. starting with "/") are considered relative to the root of
  91. the JAR file's namespace. Absolute filenames (i.e., those
  92. starting with "/") also specify names in the root of the
  93. JAR file's namespace. In general, relative names are
  94. preferred. The exception is .war files where absolute
  95. names are preferred for consistency with the Servlet API.
  96. </xsd:documentation>
  97. </xsd:annotation>
  98. <xsd:include schemaLocation="javaee_6.xsd"/>
  99. <!-- **************************************************** -->
  100. <xsd:element name="webservices"
  101. type="javaee:webservicesType">
  102. <xsd:annotation>
  103. <xsd:documentation>
  104. The webservices element is the root element for the web services
  105. deployment descriptor. It specifies the set of web service
  106. descriptions that are to be deployed into the Java EE Application Server
  107. and the dependencies they have on container resources and services.
  108. Used in: webservices.xml
  109. </xsd:documentation>
  110. </xsd:annotation>
  111. <xsd:key name="webservice-description-name-key">
  112. <xsd:annotation>
  113. <xsd:documentation>
  114. The webservice-description-name identifies the collection of
  115. port-components associated with a WSDL file and JAX-RPC mapping. The
  116. name must be unique within the deployment descriptor.
  117. </xsd:documentation>
  118. </xsd:annotation>
  119. <xsd:selector xpath="javaee:webservice-description"/>
  120. <xsd:field xpath="javaee:webservice-description-name"/>
  121. </xsd:key>
  122. </xsd:element>
  123. <!-- **************************************************** -->
  124. <xsd:complexType name="port-componentType">
  125. <xsd:annotation>
  126. <xsd:documentation>
  127. The port-component element associates a WSDL port with a web service
  128. interface and implementation. It defines the name of the port as a
  129. component, optional description, optional display name, optional iconic
  130. representations, WSDL port QName, Service Endpoint Interface, Service
  131. Implementation Bean.
  132. This element also associates a WSDL service with a JAX-WS Provider
  133. implementation.
  134. </xsd:documentation>
  135. </xsd:annotation>
  136. <xsd:sequence>
  137. <xsd:element name="description"
  138. type="javaee:descriptionType"
  139. minOccurs="0"
  140. maxOccurs="1"/>
  141. <xsd:element name="display-name"
  142. type="javaee:display-nameType"
  143. minOccurs="0"
  144. maxOccurs="1"/>
  145. <xsd:element name="icon"
  146. type="javaee:iconType"
  147. minOccurs="0"
  148. maxOccurs="1"/>
  149. <xsd:element name="port-component-name"
  150. type="javaee:string">
  151. <xsd:annotation>
  152. <xsd:documentation>
  153. <![CDATA[[
  154. The port-component-name element specifies a port component's
  155. name. This name is assigned by the module producer to name
  156. the service implementation bean in the module's deployment
  157. descriptor. The name must be unique among the port component
  158. names defined in the same module.
  159. Used in: port-component
  160. Example:
  161. <port-component-name>EmployeeService
  162. </port-component-name>
  163. ]]>
  164. </xsd:documentation>
  165. </xsd:annotation>
  166. </xsd:element>
  167. <xsd:element name="wsdl-service"
  168. type="javaee:xsdQNameType"
  169. minOccurs="0"
  170. maxOccurs="1">
  171. <xsd:annotation>
  172. <xsd:documentation>
  173. Defines the name space and local name part of the WSDL
  174. service QName. This is required to be specified for
  175. port components that are JAX-WS Provider implementations.
  176. </xsd:documentation>
  177. </xsd:annotation>
  178. </xsd:element>
  179. <xsd:element name="wsdl-port"
  180. type="javaee:xsdQNameType"
  181. minOccurs="0"
  182. maxOccurs="1">
  183. <xsd:annotation>
  184. <xsd:documentation>
  185. Defines the name space and local name part of the WSDL
  186. port QName. This is not required to be specified for port
  187. components that are JAX-WS Provider implementations
  188. </xsd:documentation>
  189. </xsd:annotation>
  190. </xsd:element>
  191. <xsd:element name="enable-mtom"
  192. type="javaee:true-falseType"
  193. minOccurs="0"
  194. maxOccurs="1">
  195. <xsd:annotation>
  196. <xsd:documentation>
  197. Used to enable or disable SOAP MTOM/XOP mechanism for an
  198. endpoint implementation.
  199. Not to be specified for JAX-RPC runtime
  200. </xsd:documentation>
  201. </xsd:annotation>
  202. </xsd:element>
  203. <xsd:element name="mtom-threshold"
  204. type="javaee:xsdNonNegativeIntegerType"
  205. minOccurs="0"
  206. maxOccurs="1">
  207. <xsd:annotation>
  208. <xsd:documentation>
  209. When MTOM is enabled, binary data above this size in bytes
  210. will be XOP encoded or sent as attachment. Default value is 0.
  211. Not to be specified for JAX-RPC runtime
  212. </xsd:documentation>
  213. </xsd:annotation>
  214. </xsd:element>
  215. <xsd:element name="addressing"
  216. type="javaee:addressingType"
  217. minOccurs="0"
  218. maxOccurs="1">
  219. <xsd:annotation>
  220. <xsd:documentation>
  221. This specifies the WS-Addressing requirements for a JAX-WS
  222. web service. It corresponds to javax.xml.ws.soap.Addressing
  223. annotation or its feature javax.xml.ws.soap.AddressingFeature.
  224. See the addressingType for more information.
  225. Not to be specified for JAX-RPC runtime
  226. </xsd:documentation>
  227. </xsd:annotation>
  228. </xsd:element>
  229. <xsd:element name="respect-binding"
  230. type="javaee:respect-bindingType"
  231. minOccurs="0"
  232. maxOccurs="1">
  233. <xsd:annotation>
  234. <xsd:documentation>
  235. Corresponds to the javax.xml.ws.RespectBinding annotation
  236. or its corresponding javax.xml.ws.RespectBindingFeature web
  237. service feature. This is used to control whether a JAX-WS
  238. implementation must respect/honor the contents of the
  239. wsdl:binding in the WSDL that is associated with the service.
  240. Not to be specified for JAX-RPC runtime
  241. </xsd:documentation>
  242. </xsd:annotation>
  243. </xsd:element>
  244. <xsd:element name="protocol-binding"
  245. type="javaee:protocol-bindingType"
  246. minOccurs="0"
  247. maxOccurs="1">
  248. <xsd:annotation>
  249. <xsd:documentation>
  250. Used to specify the protocol binding used by the port-component.
  251. If this element is not specified, then the default binding is
  252. used (SOAP 1.1 over HTTP)
  253. </xsd:documentation>
  254. </xsd:annotation>
  255. </xsd:element>
  256. <xsd:element name="service-endpoint-interface"
  257. type="javaee:fully-qualified-classType"
  258. minOccurs="0"
  259. maxOccurs="1">
  260. <xsd:annotation>
  261. <xsd:documentation>
  262. <![CDATA[[
  263. The service-endpoint-interface element contains the
  264. fully-qualified name of the port component's Service Endpoint
  265. Interface.
  266. Used in: port-component
  267. Example:
  268. <remote>com.wombat.empl.EmployeeService</remote>
  269. This may not be specified in case there is no Service
  270. Enpoint Interface as is the case with directly using an
  271. implementation class with the @WebService annotation.
  272. When the port component is a Provider implementation
  273. this is not specified.
  274. ]]>
  275. </xsd:documentation>
  276. </xsd:annotation>
  277. </xsd:element>
  278. <xsd:element name="service-impl-bean"
  279. type="javaee:service-impl-beanType"/>
  280. <xsd:choice>
  281. <xsd:element name="handler"
  282. type="javaee:handlerType"
  283. minOccurs="0"
  284. maxOccurs="unbounded">
  285. <xsd:annotation>
  286. <xsd:documentation>
  287. To be used with JAX-RPC based runtime only.
  288. </xsd:documentation>
  289. </xsd:annotation>
  290. </xsd:element>
  291. <xsd:element name="handler-chains"
  292. type="javaee:handler-chainsType"
  293. minOccurs="0"
  294. maxOccurs="1">
  295. <xsd:annotation>
  296. <xsd:documentation>
  297. To be used with JAX-WS based runtime only.
  298. </xsd:documentation>
  299. </xsd:annotation>
  300. </xsd:element>
  301. </xsd:choice>
  302. </xsd:sequence>
  303. <xsd:attribute name="id"
  304. type="xsd:ID"/>
  305. </xsd:complexType>
  306. <!-- **************************************************** -->
  307. <xsd:complexType name="service-impl-beanType">
  308. <xsd:annotation>
  309. <xsd:documentation>
  310. The service-impl-bean element defines the web service implementation.
  311. A service implementation can be an EJB bean class or JAX-RPC web
  312. component. Existing EJB implementations are exposed as a web service
  313. using an ejb-link.
  314. Used in: port-component
  315. </xsd:documentation>
  316. </xsd:annotation>
  317. <xsd:choice>
  318. <xsd:element name="ejb-link"
  319. type="javaee:ejb-linkType"/>
  320. <xsd:element name="servlet-link"
  321. type="javaee:servlet-linkType"/>
  322. </xsd:choice>
  323. <xsd:attribute name="id"
  324. type="xsd:ID"/>
  325. </xsd:complexType>
  326. <!-- **************************************************** -->
  327. <xsd:complexType name="servlet-linkType">
  328. <xsd:annotation>
  329. <xsd:documentation>
  330. <![CDATA[[
  331. The servlet-link element is used in the service-impl-bean element
  332. to specify that a Service Implementation Bean is defined as a
  333. JAX-RPC Service Endpoint.
  334. The value of the servlet-link element must be the servlet-name of
  335. a JAX-RPC Service Endpoint in the same WAR file.
  336. Used in: service-impl-bean
  337. Example:
  338. <servlet-link>StockQuoteService</servlet-link>
  339. ]]>
  340. </xsd:documentation>
  341. </xsd:annotation>
  342. <xsd:simpleContent>
  343. <xsd:restriction base="javaee:string"/>
  344. </xsd:simpleContent>
  345. </xsd:complexType>
  346. <!-- **************************************************** -->
  347. <xsd:complexType name="webservice-descriptionType">
  348. <xsd:annotation>
  349. <xsd:documentation>
  350. The webservice-description element defines a WSDL document file
  351. and the set of Port components associated with the WSDL ports
  352. defined in the WSDL document. There may be multiple
  353. webservice-descriptions defined within a module.
  354. All WSDL file ports must have a corresponding port-component element
  355. defined.
  356. Used in: webservices
  357. </xsd:documentation>
  358. </xsd:annotation>
  359. <xsd:sequence>
  360. <xsd:element name="description"
  361. type="javaee:descriptionType"
  362. minOccurs="0"
  363. maxOccurs="1"/>
  364. <xsd:element name="display-name"
  365. type="javaee:display-nameType"
  366. minOccurs="0"
  367. maxOccurs="1"/>
  368. <xsd:element name="icon"
  369. type="javaee:iconType"
  370. minOccurs="0"
  371. maxOccurs="1"/>
  372. <xsd:element name="webservice-description-name"
  373. type="javaee:string">
  374. <xsd:annotation>
  375. <xsd:documentation>
  376. The webservice-description-name identifies the collection of
  377. port-components associated with a WSDL file and JAX-RPC
  378. mapping. The name must be unique within the deployment descriptor.
  379. </xsd:documentation>
  380. </xsd:annotation>
  381. </xsd:element>
  382. <xsd:element name="wsdl-file"
  383. type="javaee:pathType"
  384. minOccurs="0"
  385. maxOccurs="1">
  386. <xsd:annotation>
  387. <xsd:documentation>
  388. The wsdl-file element contains the name of a WSDL file in the
  389. module. The file name is a relative path within the module.
  390. </xsd:documentation>
  391. </xsd:annotation>
  392. </xsd:element>
  393. <xsd:element name="jaxrpc-mapping-file"
  394. type="javaee:pathType"
  395. minOccurs="0"
  396. maxOccurs="1">
  397. <xsd:annotation>
  398. <xsd:documentation>
  399. The jaxrpc-mapping-file element contains the name of a file that
  400. describes the JAX-RPC mapping between the Java interaces used by
  401. the application and the WSDL description in the wsdl-file. The
  402. file name is a relative path within the module.
  403. This is not required when JAX-WS based runtime is used.
  404. </xsd:documentation>
  405. </xsd:annotation>
  406. </xsd:element>
  407. <xsd:element name="port-component"
  408. type="javaee:port-componentType"
  409. minOccurs="1"
  410. maxOccurs="unbounded">
  411. <xsd:key name="port-component_handler-name-key">
  412. <xsd:annotation>
  413. <xsd:documentation>
  414. Defines the name of the handler. The name must be unique
  415. within the module.
  416. </xsd:documentation>
  417. </xsd:annotation>
  418. <xsd:selector xpath="javaee:handler"/>
  419. <xsd:field xpath="javaee:handler-name"/>
  420. </xsd:key>
  421. </xsd:element>
  422. </xsd:sequence>
  423. <xsd:attribute name="id"
  424. type="xsd:ID"/>
  425. </xsd:complexType>
  426. <!-- **************************************************** -->
  427. <xsd:complexType name="webservicesType">
  428. <xsd:sequence>
  429. <xsd:group ref="javaee:descriptionGroup"/>
  430. <xsd:element name="webservice-description"
  431. type="javaee:webservice-descriptionType"
  432. minOccurs="1"
  433. maxOccurs="unbounded">
  434. <xsd:key name="port-component-name-key">
  435. <xsd:annotation>
  436. <xsd:documentation>
  437. <![CDATA[[
  438. The port-component-name element specifies a port
  439. component's name. This name is assigned by the module
  440. producer to name the service implementation bean in the
  441. module's deployment descriptor. The name must be unique
  442. among the port component names defined in the same module.
  443. Used in: port-component
  444. Example:
  445. <port-component-name>EmployeeService
  446. </port-component-name>
  447. ]]>
  448. </xsd:documentation>
  449. </xsd:annotation>
  450. <xsd:selector xpath="javaee:port-component"/>
  451. <xsd:field xpath="javaee:port-component-name"/>
  452. </xsd:key>
  453. </xsd:element>
  454. </xsd:sequence>
  455. <xsd:attribute name="version"
  456. type="javaee:dewey-versionType"
  457. fixed="1.3"
  458. use="required">
  459. <xsd:annotation>
  460. <xsd:documentation>
  461. The required value for the version is 1.3.
  462. </xsd:documentation>
  463. </xsd:annotation>
  464. </xsd:attribute>
  465. <xsd:attribute name="id"
  466. type="xsd:ID"/>
  467. </xsd:complexType>
  468. </xsd:schema>