什么是整数数组的 WSDL 声明? [英] What is the WSDL declaration for an array of integers?

查看:27
本文介绍了什么是整数数组的 WSDL 声明?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

SOAP 规范令人困惑、数量众多且有多个版本,而且我的soap 库的WSDL 生成器有问题.整数数组的正确 WSDL 是什么?难道是:

The SOAP specs are confusing, numerous, and available in multiple versions, and my soap library's WSDL generator is buggy. What's the correct WSDL for an array of integers? Could it be:

<element name="ArrayOfIntegers">
  <complexType base="SOAP-ENC:Array">
    <element name="integer" type="xsd:integer" maxOccurs="unbounded"/>
  </complexType>
  <anyAttribute/>
</element>

或者是(来自 wsdl 规范):

or is it (from the wsdl spec):

<complexType name="ArrayOfFloat">
  <complexContent>
      <restriction base="soapenc:Array">
          <attribute ref="soapenc:arrayType" 
                     wsdl:arrayType="xsd:integer[]"/>
      </restriction>
  </complexContent>
</complexType>

或者怎么样:

<element name="ArrayOfIntegers">
 <complexType>
  <sequence>
   <element maxOccurs="unbounded" name="integer" type="xsd:int"/>
  </sequence>
 </complexType>
</element>

或者别的什么?

推荐答案

前两个版本使用 SOAP 编码.第三种是使用 XML 模式时定义数组的常规方法.

First two versions are using SOAP Encoding. Third one is normal way of defining arrays when using XML schema.

这篇关于什么是整数数组的 WSDL 声明?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆