24.3.4.2. @WSDL 文档属性
属性 | 描述 |
---|---|
| (必需) 包含文档文本的字符串。 |
| (可选) 指定在 WSDL 文件中显示此文档的位置。有关可能的放置值列表,请参阅 “在 WSDL 合同中放置”一节。 |
|
(可选) 如果放置设置为 |
@WSDLDocumentationCollection 注解
@WSDLDocumentationCollection
注释由 org.apache.cxf.annotations.WSDLDocumentationCollection 接口定义。它可以放在 SEI 或 SEI 方法上。
此注解用于在单一位置或不同的位置插入多个文档元素。
在 WSDL 合同中放置
要指定在 WSDL 合同中应当出现文档的位置,您可以指定 放置
属性,类型为 WSDLDocumentation.Placement
。放置可以具有以下值之一:
-
WSDLDocumentation.Placement.BINDING
-
WSDLDocumentation.Placement.BINDING_OPERATION
-
WSDLDocumentation.Placement.BINDING_OPERATION_FAULT
-
WSDLDocumentation.Placement.BINDING_OPERATION_INPUT
-
WSDLDocumentation.Placement.BINDING_OPERATION_OUTPUT
-
WSDLDocumentation.Placement.DEFAULT
-
WSDLDocumentation.Placement.FAULT_MESSAGE
-
WSDLDocumentation.Placement.INPUT_MESSAGE
-
WSDLDocumentation.Placement.OUTPUT_MESSAGE
-
WSDLDocumentation.Placement.PORT_TYPE
-
WSDLDocumentation.Placement.PORT_TYPE_OPERATION
-
WSDLDocumentation.Placement.PORT_TYPE_OPERATION_FAULT
-
WSDLDocumentation.Placement.PORT_TYPE_OPERATION_INPUT
-
WSDLDocumentation.Placement.PORT_TYPE_OPERATION_OUTPUT
-
WSDLDocumentation.Placement.SERVICE
-
WSDLDocumentation.Placement.SERVICE_PORT
-
WSDLDocumentation.Placement.TOP
@WSDL 文档示例
第 24.3.4.3 节 “使用 @WSDL 文档” 展示如何将 @WSDL 文档
注释添加到 SEI 和其方法之一。