j2ee_web_services_1_1.xsd 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490
  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/j2ee"
  4. xmlns:j2ee="http://java.sun.com/xml/ns/j2ee"
  5. xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  6. elementFormDefault="qualified"
  7. attributeFormDefault="unqualified"
  8. version="1.1">
  9. <xsd:annotation>
  10. <xsd:documentation>
  11. @(#)j2ee_web_services_1_1.xsds 1.11 02/11/03
  12. </xsd:documentation>
  13. </xsd:annotation>
  14. <xsd:annotation>
  15. <xsd:documentation>
  16. Copyright 2003 Sun Microsystems, Inc., 901 San Antonio
  17. Road, Palo Alto, California 94303, U.S.A. All rights
  18. reserved.
  19. Sun Microsystems, Inc. has intellectual property rights
  20. relating to technology described in this document. In
  21. particular, and without limitation, these intellectual
  22. property rights may include one or more of the U.S. patents
  23. listed at http://www.sun.com/patents and one or more
  24. additional patents or pending patent applications in the
  25. U.S. and other countries.
  26. This document and the technology which it describes are
  27. distributed under licenses restricting their use, copying,
  28. distribution, and decompilation. No part of this document
  29. may be reproduced in any form by any means without prior
  30. written authorization of Sun and its licensors, if any.
  31. Third-party software, including font technology, is
  32. copyrighted and licensed from Sun suppliers.
  33. Sun, Sun Microsystems, the Sun logo, Solaris, Java, J2EE,
  34. JavaServer Pages, Enterprise JavaBeans and the Java Coffee
  35. Cup logo are trademarks or registered trademarks of Sun
  36. Microsystems, Inc. in the U.S. and other countries.
  37. Federal Acquisitions: Commercial Software - Government Users
  38. Subject to Standard License Terms and Conditions.
  39. </xsd:documentation>
  40. </xsd:annotation>
  41. <xsd:annotation>
  42. <xsd:documentation>
  43. (C) Copyright International Business Machines Corporation 2002
  44. </xsd:documentation>
  45. </xsd:annotation>
  46. <xsd:annotation>
  47. <xsd:documentation>
  48. <![CDATA[
  49. The webservices element is the root element for the web services
  50. deployment descriptor. It specifies the set of web service
  51. descriptions that are to be deployed into the J2EE Application
  52. Server and the dependencies they have on container resources and
  53. services. The deployment descriptor must be named
  54. "META-INF/webservices.xml" in the web services' jar file.
  55. Used in: webservices.xml
  56. All webservices deployment descriptors must indicate the
  57. webservices schema by using the J2EE namespace:
  58. http://java.sun.com/xml/ns/j2ee
  59. and by indicating the version of the schema by using the version
  60. element as shown below:
  61. <webservices xmlns="http://java.sun.com/xml/ns/j2ee"
  62. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  63. xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
  64. http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd"
  65. version="1.1">
  66. ...
  67. </webservices>
  68. The instance documents may indicate the published version of the
  69. schema using the xsi:schemaLocation attribute for the J2EE
  70. namespace with the following location:
  71. http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd
  72. ]]>
  73. </xsd:documentation>
  74. </xsd:annotation>
  75. <xsd:annotation>
  76. <xsd:documentation>
  77. The following conventions apply to all J2EE
  78. deployment descriptor elements unless indicated otherwise.
  79. - In elements that specify a pathname to a file within the
  80. same JAR file, relative filenames (i.e., those not
  81. starting with "/") are considered relative to the root of
  82. the JAR file's namespace. Absolute filenames (i.e., those
  83. starting with "/") also specify names in the root of the
  84. JAR file's namespace. In general, relative names are
  85. preferred. The exception is .war files where absolute
  86. names are preferred for consistency with the Servlet API.
  87. </xsd:documentation>
  88. </xsd:annotation>
  89. <xsd:include schemaLocation="j2ee_1_4.xsd"/>
  90. <!-- **************************************************** -->
  91. <xsd:element name="webservices" type="j2ee:webservicesType">
  92. <xsd:annotation>
  93. <xsd:documentation>
  94. The webservices element is the root element for the web services
  95. deployment descriptor. It specifies the set of web service
  96. descriptions that are to be deployed into the J2EE Application Server
  97. and the dependencies they have on container resources and services.
  98. Used in: webservices.xml
  99. </xsd:documentation>
  100. </xsd:annotation>
  101. <xsd:key name="webservice-description-name-key">
  102. <xsd:annotation>
  103. <xsd:documentation>
  104. The webservice-description-name identifies the collection of
  105. port-components associated with a WSDL file and JAX-RPC mapping. The
  106. name must be unique within the deployment descriptor.
  107. </xsd:documentation>
  108. </xsd:annotation>
  109. <xsd:selector xpath="j2ee:webservice-description"/>
  110. <xsd:field xpath="j2ee:webservice-description-name"/>
  111. </xsd:key>
  112. </xsd:element>
  113. <!-- **************************************************** -->
  114. <xsd:complexType name="port-componentType">
  115. <xsd:annotation>
  116. <xsd:documentation>
  117. The port-component element associates a WSDL port with a web service
  118. interface and implementation. It defines the name of the port as a
  119. component, optional description, optional display name, optional iconic
  120. representations, WSDL port QName, Service Endpoint Interface, Service
  121. Implementation Bean.
  122. </xsd:documentation>
  123. </xsd:annotation>
  124. <xsd:sequence>
  125. <xsd:element name="description"
  126. type="j2ee:descriptionType"
  127. minOccurs="0" maxOccurs="1"/>
  128. <xsd:element name="display-name"
  129. type="j2ee:display-nameType"
  130. minOccurs="0" maxOccurs="1"/>
  131. <xsd:element name="icon"
  132. type="j2ee:iconType"
  133. minOccurs="0" maxOccurs="1"/>
  134. <xsd:element name="port-component-name"
  135. type="j2ee:string">
  136. <xsd:annotation>
  137. <xsd:documentation>
  138. <![CDATA[
  139. The port-component-name element specifies a port component's
  140. name. This name is assigned by the module producer to name
  141. the service implementation bean in the module's deployment
  142. descriptor. The name must be unique among the port component
  143. names defined in the same module.
  144. Used in: port-component
  145. Example:
  146. <port-component-name>EmployeeService
  147. </port-component-name>
  148. ]]>
  149. </xsd:documentation>
  150. </xsd:annotation>
  151. </xsd:element>
  152. <xsd:element name="wsdl-port"
  153. type="j2ee:xsdQNameType">
  154. <xsd:annotation>
  155. <xsd:documentation>
  156. Defines the name space and local name part of the WSDL port QName.
  157. </xsd:documentation>
  158. </xsd:annotation>
  159. </xsd:element>
  160. <xsd:element name="service-endpoint-interface"
  161. type="j2ee:fully-qualified-classType">
  162. <xsd:annotation>
  163. <xsd:documentation>
  164. <![CDATA[
  165. The service-endpoint-interface element contains the
  166. fully-qualified name of the port component's Service Endpoint
  167. Interface.
  168. Used in: port-component
  169. Example:
  170. <remote>com.wombat.empl.EmployeeService</remote>
  171. ]]>
  172. </xsd:documentation>
  173. </xsd:annotation>
  174. </xsd:element>
  175. <xsd:element name="service-impl-bean"
  176. type="j2ee:service-impl-beanType"/>
  177. <xsd:element name="handler"
  178. type="j2ee:port-component_handlerType"
  179. minOccurs="0" maxOccurs="unbounded"/>
  180. </xsd:sequence>
  181. <xsd:attribute name="id" type="xsd:ID"/>
  182. </xsd:complexType>
  183. <!-- **************************************************** -->
  184. <xsd:complexType name="port-component_handlerType">
  185. <xsd:annotation>
  186. <xsd:documentation>
  187. Declares the handler for a port-component. Handlers can access the
  188. init-param name/value pairs using the HandlerInfo interface.
  189. Used in: port-component
  190. </xsd:documentation>
  191. </xsd:annotation>
  192. <xsd:sequence>
  193. <xsd:group ref="j2ee:descriptionGroup"/>
  194. <xsd:element name="handler-name"
  195. type="j2ee:string">
  196. <xsd:annotation>
  197. <xsd:documentation>
  198. Defines the name of the handler. The name must be unique within the
  199. module.
  200. </xsd:documentation>
  201. </xsd:annotation>
  202. </xsd:element>
  203. <xsd:element name="handler-class"
  204. type="j2ee:fully-qualified-classType">
  205. <xsd:annotation>
  206. <xsd:documentation>
  207. Defines a fully qualified class name for the handler implementation.
  208. </xsd:documentation>
  209. </xsd:annotation>
  210. </xsd:element>
  211. <xsd:element name="init-param"
  212. type="j2ee:param-valueType"
  213. minOccurs="0" maxOccurs="unbounded"/>
  214. <xsd:element name="soap-header"
  215. type="j2ee:xsdQNameType"
  216. minOccurs="0" maxOccurs="unbounded">
  217. <xsd:annotation>
  218. <xsd:documentation>
  219. Defines the QName of a SOAP header that will be processed by the
  220. handler.
  221. </xsd:documentation>
  222. </xsd:annotation>
  223. </xsd:element>
  224. <xsd:element name="soap-role"
  225. type="j2ee:string"
  226. minOccurs="0" maxOccurs="unbounded">
  227. <xsd:annotation>
  228. <xsd:documentation>
  229. The soap-role element contains a SOAP actor definition that the
  230. Handler will play as a role.
  231. </xsd:documentation>
  232. </xsd:annotation>
  233. </xsd:element>
  234. </xsd:sequence>
  235. <xsd:attribute name="id" type="xsd:ID"/>
  236. </xsd:complexType>
  237. <!-- **************************************************** -->
  238. <xsd:complexType name="service-impl-beanType">
  239. <xsd:annotation>
  240. <xsd:documentation>
  241. The service-impl-bean element defines the web service implementation.
  242. A service implementation can be an EJB bean class or JAX-RPC web
  243. component. Existing EJB implementations are exposed as a web service
  244. using an ejb-link.
  245. Used in: port-component
  246. </xsd:documentation>
  247. </xsd:annotation>
  248. <xsd:choice>
  249. <xsd:element name="ejb-link"
  250. type="j2ee:ejb-linkType"/>
  251. <xsd:element name="servlet-link"
  252. type="j2ee:servlet-linkType"/>
  253. </xsd:choice>
  254. <xsd:attribute name="id" type="xsd:ID"/>
  255. </xsd:complexType>
  256. <!-- **************************************************** -->
  257. <xsd:complexType name="servlet-linkType">
  258. <xsd:annotation>
  259. <xsd:documentation>
  260. <![CDATA[
  261. The servlet-link element is used in the service-impl-bean element
  262. to specify that a Service Implementation Bean is defined as a
  263. JAX-RPC Service Endpoint.
  264. The value of the servlet-link element must be the servlet-name of
  265. a JAX-RPC Service Endpoint in the same WAR file.
  266. Used in: service-impl-bean
  267. Example:
  268. <servlet-link>StockQuoteService</servlet-link>
  269. ]]>
  270. </xsd:documentation>
  271. </xsd:annotation>
  272. <xsd:simpleContent>
  273. <xsd:restriction base="j2ee:string"/>
  274. </xsd:simpleContent>
  275. </xsd:complexType>
  276. <!-- **************************************************** -->
  277. <xsd:complexType name="webservice-descriptionType">
  278. <xsd:annotation>
  279. <xsd:documentation>
  280. The webservice-description element defines a WSDL document file
  281. and the set of Port components associated with the WSDL ports
  282. defined in the WSDL document. There may be multiple
  283. webservice-descriptions defined within a module.
  284. All WSDL file ports must have a corresponding port-component element
  285. defined.
  286. Used in: webservices
  287. </xsd:documentation>
  288. </xsd:annotation>
  289. <xsd:sequence>
  290. <xsd:element name="description"
  291. type="j2ee:descriptionType"
  292. minOccurs="0" maxOccurs="1"/>
  293. <xsd:element name="display-name"
  294. type="j2ee:display-nameType"
  295. minOccurs="0" maxOccurs="1"/>
  296. <xsd:element name="icon"
  297. type="j2ee:iconType"
  298. minOccurs="0" maxOccurs="1"/>
  299. <xsd:element name="webservice-description-name"
  300. type="j2ee:string">
  301. <xsd:annotation>
  302. <xsd:documentation>
  303. The webservice-description-name identifies the collection of
  304. port-components associated with a WSDL file and JAX-RPC
  305. mapping. The name must be unique within the deployment descriptor.
  306. </xsd:documentation>
  307. </xsd:annotation>
  308. </xsd:element>
  309. <xsd:element name="wsdl-file"
  310. type="j2ee:pathType">
  311. <xsd:annotation>
  312. <xsd:documentation>
  313. The wsdl-file element contains the name of a WSDL file in the
  314. module. The file name is a relative path within the module.
  315. </xsd:documentation>
  316. </xsd:annotation>
  317. </xsd:element>
  318. <xsd:element name="jaxrpc-mapping-file"
  319. type="j2ee:pathType">
  320. <xsd:annotation>
  321. <xsd:documentation>
  322. The jaxrpc-mapping-file element contains the name of a file that
  323. describes the JAX-RPC mapping between the Java interaces used by
  324. the application and the WSDL description in the wsdl-file. The
  325. file name is a relative path within the module.
  326. </xsd:documentation>
  327. </xsd:annotation>
  328. </xsd:element>
  329. <xsd:element name="port-component"
  330. type="j2ee:port-componentType"
  331. minOccurs="1" maxOccurs="unbounded">
  332. <xsd:key name="port-component_handler-name-key">
  333. <xsd:annotation>
  334. <xsd:documentation>
  335. Defines the name of the handler. The name must be unique
  336. within the module.
  337. </xsd:documentation>
  338. </xsd:annotation>
  339. <xsd:selector xpath="j2ee:handler"/>
  340. <xsd:field xpath="j2ee:handler-name"/>
  341. </xsd:key>
  342. </xsd:element>
  343. </xsd:sequence>
  344. <xsd:attribute name="id" type="xsd:ID"/>
  345. </xsd:complexType>
  346. <!-- **************************************************** -->
  347. <xsd:complexType name="webservicesType">
  348. <xsd:sequence>
  349. <xsd:group ref="j2ee:descriptionGroup"/>
  350. <xsd:element name="webservice-description"
  351. type="j2ee:webservice-descriptionType"
  352. minOccurs="1" maxOccurs="unbounded">
  353. <xsd:key name="port-component-name-key">
  354. <xsd:annotation>
  355. <xsd:documentation>
  356. <![CDATA[
  357. The port-component-name element specifies a port
  358. component's name. This name is assigned by the module
  359. producer to name the service implementation bean in the
  360. module's deployment descriptor. The name must be unique
  361. among the port component names defined in the same module.
  362. Used in: port-component
  363. Example:
  364. <port-component-name>EmployeeService
  365. </port-component-name>
  366. ]]>
  367. </xsd:documentation>
  368. </xsd:annotation>
  369. <xsd:selector xpath="j2ee:port-component"/>
  370. <xsd:field xpath="j2ee:port-component-name"/>
  371. </xsd:key>
  372. </xsd:element>
  373. </xsd:sequence>
  374. <xsd:attribute name="version"
  375. type="j2ee:dewey-versionType"
  376. fixed="1.1"
  377. use="required">
  378. <xsd:annotation>
  379. <xsd:documentation>
  380. The required value for the version is 1.1.
  381. </xsd:documentation>
  382. </xsd:annotation>
  383. </xsd:attribute>
  384. <xsd:attribute name="id" type="xsd:ID"/>
  385. </xsd:complexType>
  386. </xsd:schema>