gpt4 book ai didi

java - 带有数组参数的 CXF Web 服务方法

转载 作者:太空宇宙 更新时间:2023-11-04 08:22:57 24 4
gpt4 key购买 nike

我是 Web 服务新手。我正在使用 apache cxf 作为我的 Web 服务。

我很困惑 cxf Web 服务是否支持带有“数组”参数的方法。

请帮助我。

最佳答案

我认为是这样 - 从 O'Reilly 的“Web Services”第 6 章来看:

http://oreilly.com/catalog/webservess/chapter/ch06.html

在页面中搜索“复杂类型”,您会看到:

<complexType name="ArrayOfString">
<complexContent>
<restriction base="soapenc:Array">
<attribute ref="soapenc:arrayType"
wsdl:arrayType="string[]"/>
</restriction>
</complexContent>
</complexType>

在 WSDL 示例中。

希望对您有用!

关于java - 带有数组参数的 CXF Web 服务方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9181909/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com