PageRenderTime 48ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/projects/netbeans-7.3/websvc.core/bin/org/netbeans/modules/websvc/core/resources/wsdl_customizationschema_2_0.xsd

https://gitlab.com/essere.lab.public/qualitas.class-corpus
XML Schema | 393 lines | 335 code | 58 blank | 0 comment | 0 complexity | 48a0e15e4f76464b7101ef5ca8f9ff94 MD5 | raw file
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
  3. xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
  4. elementFormDefault="qualified"
  5. targetNamespace="http://java.sun.com/xml/ns/jaxws"
  6. attributeFormDefault="unqualified">
  7. <xs:annotation>
  8. <xs:documentation>
  9. Schema for JAX-WS 2.0 WSDL customization.
  10. </xs:documentation>
  11. </xs:annotation>
  12. <xs:group name="declaration">
  13. <xs:annotation>
  14. <xs:documentation>
  15. TODO
  16. </xs:documentation>
  17. </xs:annotation>
  18. <xs:choice>
  19. <xs:element ref="jaxws:package"/>
  20. <xs:element ref="jaxws:enableWrapperStyle"/>
  21. <xs:element ref="jaxws:enableAsyncMapping"/>
  22. <xs:element ref="jaxws:enableMIMEContent"/>
  23. <xs:element ref="jaxws:class"/>
  24. <xs:element ref="jaxws:method"/>
  25. <xs:element ref="jaxws:parameter"/>
  26. <xs:element ref="jaxws:provider"/>
  27. <xs:any namespace="##other" processContents="lax" />
  28. </xs:choice>
  29. </xs:group>
  30. <xs:element name="bindings">
  31. <xs:annotation>
  32. <xs:documentation>
  33. WSDL customization binding declaration.
  34. There are two ways to specify binding declarations.
  35. 1. All binding declarations pertainingto a given WSDL document are grouped together in a standalone
  36. document, called an external binding file.
  37. 2. The second approach consists in embeddeding binding declarations directly inside a WSDL document. In
  38. either case, the jaxws:bindings element is used as a container for JAX-WS binding declarations. It
  39. contains a (possibly empty) list of binding declarations, in any order.
  40. A binding declaration embedded in a WSDL document can only affect the WSDL element it extends. When a
  41. jaxws:bindings element is used as a WSDL extension, it MUST NOT have a node attribute. Moreover, it MUST
  42. NOT have an element whose qualified name is jaxws:bindings amongs its children.
  43. </xs:documentation>
  44. </xs:annotation>
  45. <xs:complexType>
  46. <xs:sequence>
  47. <xs:choice minOccurs="0" maxOccurs="unbounded">
  48. <xs:group ref="jaxws:declaration"/>
  49. <xs:element ref="jaxws:bindings"/>
  50. </xs:choice>
  51. </xs:sequence>
  52. <xs:attribute name="wsdlLocation" type="xs:anyURI">
  53. <xs:annotation>
  54. <xs:documentation>
  55. Location of the remote WSDL to associate binding declarations with. It MUST NOT be present if
  56. the jaxws:bindings element is used as an extension inside a WSDL document or one of its ancestor
  57. jaxws:bindings elements already contains this attribute.
  58. </xs:documentation>
  59. </xs:annotation>
  60. </xs:attribute>
  61. <xs:attribute name="node" type="xs:string">
  62. <xs:annotation>
  63. <xs:documentation>
  64. The value of the string is an XPATH 1.0 compliant string that resolves to a node in a remote
  65. WSDL to associate binding declarations with. The remote WSDL is specified by the
  66. wsdlLocation attribute occuring in the current element or in a parent of this element.
  67. The node attribute can be used to customize the inlined schema inside the WSDL, in this case the
  68. node attribute must point to the xs:schema node inside the WSDL. Further jaxb:bindings should be
  69. used as the child of jaxws:bindings.
  70. Example:
  71. <!--
  72. <jaxws:bindings wsdlLocation="..."
  73. xmlns:xs="http://www.w3.org/2001/XMLSchema"
  74. xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
  75. xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
  76. xmlns:jaxb="http://java.sun.com/xml/ns/jaxb">
  77. <jaxws:bindings
  78. node="wsdl:definitions/wsdl:types/xs:schema[@targetNamespace='urn:test:types']">
  79. <jaxb:schemaBindings>
  80. <jaxb:package name="client.types"/>
  81. </jaxb:schemaBindings>
  82. <jaxb:bindings node="//xs:complexType[@name='class']">
  83. <jaxb:class name="Clazz"/>
  84. </jaxb:bindings>
  85. </jaxws:bindings>
  86. </jaxws:bindings>
  87. -->
  88. NOTE: It MUST NOT be present if the jaxws:bindings appears inside a WSDL document.
  89. </xs:documentation>
  90. </xs:annotation>
  91. </xs:attribute>
  92. <xs:attribute name="version" type="xs:token" default="2.0">
  93. <xs:annotation>
  94. <xs:documentation>
  95. Used to indicate the version of WSDL customization declarations. Only valid on root level
  96. bindings element.
  97. If this is absent, it will implicitly be assumed to be 2.0.
  98. </xs:documentation>
  99. </xs:annotation>
  100. </xs:attribute>
  101. </xs:complexType>
  102. </xs:element>
  103. <xs:complexType name="tJavaDoc">
  104. <xs:annotation></xs:annotation>
  105. <xs:sequence>
  106. <xs:element name="javadoc" type="xs:string" minOccurs="0"/>
  107. </xs:sequence>
  108. </xs:complexType>
  109. <xs:element name="package">
  110. <xs:annotation>
  111. <xs:documentation>
  112. If absent, the default package name is computed from the targetNamespace of the WSDL in scope. The rules
  113. of targetNamespace to Java package name is described in the JAXB specification.
  114. Appears in the context of a WSDL document, either as an extension to the wsdl:definitions element or in
  115. an external binding file at a place where there is a WSDL document in scope.
  116. Scope:
  117. wsd;definitions
  118. Example:
  119. <!--
  120. <jaxws:bindings wsdlLocation="..."
  121. xmlns:xs="http://www.w3.org/2001/XMLSchema"
  122. xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
  123. xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
  124. xmlns:jaxb="http://java.sun.com/xml/ns/jaxb">
  125. <jaxws:package></jaxws:package>
  126. </jaxws:bindings>
  127. -->
  128. </xs:documentation>
  129. </xs:annotation>
  130. <xs:complexType>
  131. <xs:complexContent>
  132. <xs:extension base="jaxws:tJavaDoc">
  133. <xs:attribute name="name" type="xs:string" use="required"/>
  134. </xs:extension>
  135. </xs:complexContent>
  136. </xs:complexType>
  137. </xs:element>
  138. <xs:element name="enableWrapperStyle" type="xs:boolean">
  139. <xs:annotation>
  140. <xs:documentation>
  141. enableWrapperStyle can be used to disable wrapper style Java method generation. If absent the default
  142. value of enableWrapperStyle is true. Setting it to true may not result into wrapper style method
  143. generation unless the wrapper style rules are satisfied as defined in JAX-WS 2.1 specification 2.3.1.2.
  144. Scope:
  145. wsd;definitions, wsdl:portType, wsdl:portType/wsdl:operation.
  146. Example:
  147. <jaxws:bindings wsdlLocation="..."
  148. xmlns:xs="http://www.w3.org/2001/XMLSchema"
  149. xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
  150. xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
  151. xmlns:jaxb="http://java.sun.com/xml/ns/jaxb">
  152. <!-- Turn off wrapper style Java method signature generation -->
  153. <jaxws:enableWrapperStyle>false</jaxws:enableWrapperStyle>
  154. </jaxws:bindings>
  155. </xs:documentation>
  156. </xs:annotation>
  157. </xs:element>
  158. <xs:element name="enableAsyncMapping" type="xs:boolean">
  159. <xs:annotation>
  160. <xs:documentation>
  161. enableAsyncMapping can be used to enable async method generation in the entpoint interface generated
  162. from a WSDL. If absent the default value of enableAsyncMapping is false. See JAX-WS 2.1 spec
  163. section 2.3.4.2.
  164. Scope:
  165. wsd;definitions, wsdl:portType, wsdl:portType/wsdl:operation.
  166. Note: These generated async methods can be used only on the client side.
  167. Example:
  168. <jaxws:bindings wsdlLocation="..."
  169. xmlns:xs="http://www.w3.org/2001/XMLSchema"
  170. xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
  171. xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
  172. xmlns:jaxb="http://java.sun.com/xml/ns/jaxb">
  173. <!-- Generate async methods in the generated Java endpoint interface for all the portTypes and
  174. operations in the WSDL's scope. -->
  175. <jaxws:enableAsyncMapping>false</jaxws:enableAsyncMapping>
  176. </jaxws:bindings>
  177. </xs:documentation>
  178. </xs:annotation>
  179. </xs:element>
  180. <xs:element name="enableMIMEContent" type="xs:boolean">
  181. <xs:annotation>
  182. <xs:documentation>
  183. If present the use of the mime:content information is enabled as defined in the JAX-WS 2.1 spec
  184. section 2.6.3.1
  185. Scope:
  186. wsdl:definitions, wsdl:binding, wsdl:binding/wsdl:operation
  187. Example:
  188. <jaxws:bindings wsdlLocation="..."
  189. xmlns:xs="http://www.w3.org/2001/XMLSchema"
  190. xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
  191. xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
  192. xmlns:jaxb="http://java.sun.com/xml/ns/jaxb">
  193. <!-- Enables MIME content for all the bindings in the WSDL's scope. -->
  194. <jaxws:enableMIMEContent>false</jaxws:enableMIMEContent>
  195. </jaxws:bindings>
  196. </xs:documentation>
  197. </xs:annotation>
  198. </xs:element>
  199. <xs:element name="class">
  200. <xs:annotation>
  201. <xs:documentation>
  202. Customizes the name of generated classes for the SEI, service class or the fault class.
  203. Scope:
  204. wsd;portType - The name of generated SEI (Service Endpoint Interface)
  205. wsdl:portType/wsdl:operation/wsdl:fault - The generated fault class name.
  206. wsdl:service - Name of the generated Service class.
  207. Example:
  208. <jaxws:bindings wsdlLocation="..."
  209. xmlns:xs="http://www.w3.org/2001/XMLSchema"
  210. xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
  211. xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
  212. xmlns:jaxb="http://java.sun.com/xml/ns/jaxb">
  213. <!-- Customize the generated SEI class name -->
  214. <jaxws:bindings node="wsdl:definitions/wsdl:portType[@name='Hello']">
  215. <jaxws:class name="HelloWorld"/>
  216. </jaxws:bindings>
  217. <!-- customize the generated Service class name -->
  218. <jaxws:bindings node="wsdl:definitions/wsdl:service[@name='Hello']">
  219. <jaxws:class name="CustomService"/>
  220. </jaxws:bindings>
  221. <!-- customize the generated fault class name -->
  222. <jaxws:bindings
  223. node="wsdl:definitions/wsdl:portType[@name='Hello']/wsdl:operation[@name='Foo']/wsdl:fault[@name='FooFault']">
  224. <jaxws:class name="FooException"/>
  225. </jaxws:bindings>
  226. </jaxws:bindings>
  227. </xs:documentation>
  228. </xs:annotation>
  229. <xs:complexType>
  230. <xs:complexContent>
  231. <xs:extension base="jaxws:tJavaDoc">
  232. <xs:attribute name="name" type="xs:string" use="required"/>
  233. </xs:extension>
  234. </xs:complexContent>
  235. </xs:complexType>
  236. </xs:element>
  237. <xs:element name="method">
  238. <xs:annotation>
  239. <xs:documentation>
  240. Customizes the name of Java method in the generated classes.
  241. Scope:
  242. wsd;portType/wsdl:operation - name of Java methods corresponding to wsdl:operation
  243. wsdl:service/wsdl:port - Name of the port getter in the generated Service class
  244. Example:
  245. <jaxws:bindings wsdlLocation="..."
  246. xmlns:xs="http://www.w3.org/2001/XMLSchema"
  247. xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
  248. xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
  249. xmlns:jaxb="http://java.sun.com/xml/ns/jaxb">
  250. <!-- Renames Java method from hello() to helloWorld() -->
  251. <jaxws:bindings node="wsdl:definitions/wsdl:portType[@name='Hello']/wsdl:operation[@name='Hello']">
  252. <jaxws:class name="helloWorld"/>
  253. </jaxws:bindings>
  254. <!-- Renames the generated port getter method form getHelloPort(), which is default for "HelloPort",
  255. to getCustomizedPort -->
  256. <jaxws:bindings node="wsdl:definitions/wsdl:service[@name='Hello']/wsdl:port[@name='HelloPort']">
  257. <jaxws:method name="getCustomizedPort"/>
  258. </jaxws:bindings>
  259. </jaxws:bindings>
  260. </xs:documentation>
  261. </xs:annotation>
  262. <xs:complexType>
  263. <xs:complexContent>
  264. <xs:extension base="jaxws:tJavaDoc">
  265. <xs:attribute name="name" type="xs:string" use="required"/>
  266. </xs:extension>
  267. </xs:complexContent>
  268. </xs:complexType>
  269. </xs:element>
  270. <xs:element name="parameter">
  271. <xs:annotation>
  272. <xs:documentation>
  273. Customizes the name of the Java method parameters in the generated SEI.
  274. Scope:
  275. wsd;portType/wsdl:operation
  276. wsdl:binding/wsdl:operation To rename wsdl:header (additional header parameters, this support is
  277. optional as JAX-WS 2.1 spec makes additional header mapping optional.
  278. Example:
  279. <jaxws:bindings wsdlLocation="..."
  280. xmlns:xs="http://www.w3.org/2001/XMLSchema"
  281. xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
  282. xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
  283. xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
  284. xmlns:types1="urn:test:types">
  285. <!-- Rename a wrapper child parameter 'argument' to 'helloArgument'-->
  286. <jaxws:bindings node="wsdl:definitions/wsdl:portType[@name='Hello']/wsdl:operation[@name='Hello']">
  287. <jaxws:parameter
  288. part="wsdl:definitions/wsdl:message[@name='HelloRequest']/wsdl:part[@name='parameters']"
  289. childElementName="types1:argument" name="helloArgument"/>
  290. </jaxws:bindings>
  291. <!-- Rename a BARE parameter 'in' to 'fooRequest'-->
  292. <jaxws:bindings node="wsdl:definitions/wsdl:portType[@name='Hello']/wsdl:operation[@name='Foo']">
  293. <jaxws:enableWrapperStyle>false</jaxws:enableWrapperStyle>
  294. <jaxws:parameter part="wsdl:definitions/wsdl:message[@name='FooRequest']/wsdl:part[@name='in']"
  295. name="fooRequest"/>
  296. </jaxws:bindings>
  297. </jaxws:bindings>
  298. </xs:documentation>
  299. </xs:annotation>
  300. <xs:complexType>
  301. <xs:attribute name="part" type="xs:string" use="required">
  302. <xs:annotation>
  303. <xs:documentation>
  304. A XPath expression identifying a wsdl:part child of a wsdl:message.
  305. </xs:documentation>
  306. </xs:annotation>
  307. </xs:attribute>
  308. <xs:attribute name="childElementName" type="xs:QName" use="optional">
  309. <xs:annotation>
  310. <xs:documentation>
  311. The qualified name of a child element information item of the global type definition or global
  312. element declaration referred to by the wsdl:part identified by the previous attribute. It is
  313. optional and you need it only to rename parameters corresponding to wrapper style operation.
  314. </xs:documentation>
  315. </xs:annotation>
  316. </xs:attribute>
  317. <xs:attribute name="name" type="xs:string" use="required">
  318. <xs:annotation>
  319. <xs:documentation>
  320. The name of the Java formal parameter corresponding to the parameter identified by the previous
  321. two attributes.
  322. </xs:documentation>
  323. </xs:annotation>
  324. </xs:attribute>
  325. </xs:complexType>
  326. </xs:element>
  327. <xs:element name="provider">
  328. <xs:annotation>
  329. <xs:documentation>
  330. This binding declaration specifies that the annotated port will be used with the
  331. javax.xml.ws.Provider interface.
  332. </xs:documentation>
  333. </xs:annotation>
  334. </xs:element>
  335. </xs:schema>