【发布时间】:2016-05-12 19:58:02
【问题描述】:
我正在开发一个 ColdFusion SOAP Web 服务,但我不知道如何将注释子元素和文档子元素添加到生成的 WSDL。
这是我的预期输出:
<xsd:element name="country" minOccurs="1" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The ISO 3166-1 alpha-2 country code
</xsd:documentation>
</xsd:annotation>
....
</xsd:element>
我的 ColdFusion 生成的 WSDL 如下所示:
<xs:element minOccurs="0" name="country" nillable="true" type="xs:string"/>
我在 cfcomponent > cffunction 中定义了这样的参数:
<cfargument name="country" type="string" required="true" default="" hint="The ISO 3166-1 alpha-2 country code"/>
使用提示属性不会添加注释和文档子元素,但我在 ColdFusion 文档中找不到其他方法来实现这一点。
在寻找答案时,我看到 ColdFusion SOAP Web 服务被描述为“半生不熟”。尝试这个是不是让我自己失败了?
【问题讨论】:
标签: web-services soap coldfusion wsdl