2 Replies Latest reply on Jul 5, 2005 10:47 AM by Pantschenko Konstantin

    restriction base='soapenc:Array' in WSDL

    Pantschenko Konstantin Newbie

      Hi ,

      I am using JBoss4.0.2 and should make WEB Service which has WSDL

      <complexType name="Address">
       <sequence>
       <element name="city" nillable="true" type="xsd:string"/>
       <element name="street" nillable="true" type="xsd:string"/>
       <element name="streetNo" type="xsd:int"/>
       </sequence>
      </complexType>
      <complexType name="ArrayOfAddress">
       <complexContent>
       <restriction base="soapenc:Array">
       <attribute ref="soapenc:arrayType" wsdl:arrayType="impl:Address[]"/>
       </restriction>
       <complexContent>
      </complexType>


      When I try JWSDP (wscompile, wsdeploy) and receive
      <complexType name="Address">
       <sequence>
       <element name="city" nillable="true" type="xsd:string"/>
       <element name="street" nillable="true" type="xsd:string"/>
       <element name="streetNo" type="xsd:int"/>
       </sequence>
      </complexType>
      <complexType name="AddressArray">
       <sequence>
       <element maxOccurs="unbounded" minOccurs="0" name="addressArray" nillable="true" type="tns:Address"/>
       </sequence>
      </complexType>

      How to do restriction base="soapenc:Array" in WSDL?

      Thanks for any help.