Try OpenEdge Now
skip to main content
Web Services
Understanding WSDL Details : Array mapping in WSDL documents : Doc/Lit
 

Doc/Lit

For the Doc/Lit format, an array parameter is represented as a sequence of its data type in an XML Schema type definition:

Array parameter definition for Doc/Lit WSDL

<complexType
  <sequence>
    <element name="paramName" type="XMLType"
             minOccurs="zero_or_extentval"
             maxOccurs="extentval_or_unbounded"/>
  </sequence>
</complexType>
The bolded elements refer to:
*paramName — The name of the parameter
*XMLType — The XML Schema type of the parameter
*zero_or_extentval0 or an integer for the minimum array size
*extentval_or_unbounded — An integer for the maximum array size or unbounded
The Doc/Lit WSDL for arraySample has the following types and message sections:

Doc/Lit WSDL schema example

<wsdl:types>
  <schema targetNamespace="urn:tempuri-org:CustomerAO"
          xmlns="http://www.w3.org/2001/XMLSchema"
          elementFormDefault="qualified">
    <element name="arraySample">
      <complexType>
        <sequence>
          <element name="names" type="xsd:string" minOccurs="0"
                   maxOccurs="unbounded" nillable="true">
          <element name="hireDates" type="xsd:dateTime" minOccurs="0"
                   maxOccurs="unbounded" nillable="true">
        </sequence>
      </complexType>
    </element>
    <element name="arraySampleResponse">
      <complexType>
        <sequence>
          <element name="quotas" type="xsd:int" minOccurs="12"
                   maxOccurs="12" nillable="true">
        </sequence>
      </complexType>
    </element>
  </schema>
</wsdl:types>
<wsdl:message name="CustomerAO_procName">
  <part name="parameters" element="S1:procName"/>
</wsdl:message>
<wsdl:message name="CustomerAO_procNameResponse">
  <part name="parameters" element="S1:procNameResponse"/>
</wsdl:message>