24.3.4.2. @WSDL 文档属性
| 属性 | 描述 |
|---|---|
|
| (必需) 包含文档文本的字符串。 |
|
| (可选) 指定此文档会出现的 WSDL 文件中的位置。有关可能放置值的列表,请参阅 “在 WSDL 合同中放置”一节。 |
|
|
(可选) 如果将放置设置为 |
@WSDLDocumentationCollection 注解 复制链接链接已复制到粘贴板!
@WSDLDocumentationCollection 注释由 org.apache.cxf.annotations.WSDLDocumentationCollection 接口定义。它可以放置在 SEI 或 SEI 方法上。
此注解用于在一个位置或不同位置插入多个文档元素。
在 WSDL 合同中放置 复制链接链接已复制到粘贴板!
要指定文档在 WSDL 合同中应显示的位置,您可以指定 placement 属性,即 WSDL 文档。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 和方法之一。