Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the WSDL declaration for an array of integers?

Tags:

soap

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>

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>

Or how about:

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

Or something else?

like image 427
joeforker Avatar asked Jan 13 '10 03:01

joeforker


People also ask

What is the WSDL file?

What is a WSDL? WSDL, or Web Service Description Language, is an XML based definition language. It's used for describing the functionality of a SOAP based web service. WSDL files are central to testing SOAP-based services. SoapUI uses WSDL files to generate test requests, assertions and mock services.

Which data type is used to define all the elements in the WSDL?

The WSDL document defines XSD types (data types). IEP data types, as observable and editable from the property editor for a specific operator, have their counterparts in XSD data types.

What is SOAP and WSDL?

A WSDL is an XML document that describes a web service. It actually stands for Web Services Description Language. SOAP is an XML-based protocol that lets you exchange info over a particular protocol (can be HTTP or SMTP, for example) between applications.


1 Answers

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

like image 167
Milinda Pathirage Avatar answered Sep 24 '22 23:09

Milinda Pathirage