我想在ViaMichelin API中使用“FindPOI”
以下是SOAP WSDL的链接: https://webservices.viamichelin.com/ws2/services/FindPOI?wsdl
我正在使用名为“SOAP UI”的soap客户端手动发送请求,但我无法格式化WSDL中所需的复杂类型“ArrayOf_xsd_string”。
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="ArrayOf_xsd_string">
<complexContent>
<restriction base="soapenc:Array">
<attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]"/>
</restriction>
</complexContent>
</complexType>
以下是我的猜测,但这不起作用:
<datasheetContent xsi:type="ser:ArrayOf_xsd_string" arrayType="xsd:string[4]">
<item xsi:type="xsd:string">tel</item>
<item xsi:type="xsd:string">fax</item>
<item xsi:type="xsd:string">email</item>
<item xsi:type="xsd:string">iconId</item>
</datasheetContent>
使用: xmlns:xsi =“http://www.w3.org/2001/XMLSchema-instance” 和: xmlns:ser =“http://service.localization.ws2.viamichelin.com”
服务器响应是:
<faultcode>soapenv:Server.userException</faultcode>
<faultstring>org.xml.sax.SAXException: No deserializer for {http://service.localization.ws2.viamichelin.com}ArrayOf_xsd_string</faultstring>
成功使用此API方法的任何线索?