gpt4 book ai didi

soap - 如何将 SOAP 方法的返回类型声明为映射(在其 WSDL 中)?

转载 作者:行者123 更新时间:2023-12-01 03:01:50 24 4
gpt4 key购买 nike

我正在向 SOAP 服务添加一个方法。我希望这种方法能够返回 map 。更具体地说,它是列表(向量/数组)的映射。我将如何在其 WSDL 中捕获它?

最佳答案

这是从字符串到字符串的常规映射的 XSD 类型:

<xsd:complexType name="MapDataType">
<xsd:sequence>
<xsd:element name="Pair" maxOccurs="unbounded" minOccurs="0">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Key" type="xsd:string" maxOccurs="1" minOccurs="1"/>
<xsd:element name="Value" type="xsd:string" maxOccurs="1" minOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>

这是你想要的吗?您需要将其用作返回值的类型。

我不确定您所说的“列表 map ”是什么意思

关于soap - 如何将 SOAP 方法的返回类型声明为映射(在其 WSDL 中)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/289091/

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