Hi,

while playing/testing with Axis I used the following WSDL file to
generate stubs, skeletons etc. 

<?xml version='1.0' encoding='UTF-8'?>
 
<definitions name='forTest'
  targetNamespace="urn:Ops" xmlns:tns="urn:Ops"
  xmlns:srv="urn:service"
  xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
  xmlns:xsd='http://www.w3.org/2001/XMLSchema'
  xmlns:soapenc='http://schemas.xmlsoap.org/soap/encoding/'
  xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/'
  xmlns='http://schemas.xmlsoap.org/wsdl/'>

  <types>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema";
      targetNamespace="urn:service" xmlns:tns="urn:service"
      version="1.0" xml:lang="EN">

        <xsd:complexType name="Range">
          <xsd:sequence>
            <xsd:element name="START" type="xsd:integer"/>
            <xsd:element name="STOP" type="xsd:integer"/>
            </xsd:sequence>
         </xsd:complexType>

         <xsd:complexType name="idxType">
           <xsd:sequence minOccurs="1" maxOccurs="unbounded">
             <xsd:choice>
                <xsd:element name="SINGLE" type="xsd:integer"/>
                <xsd:element name="RANGE" type="tns:Range"/>
             </xsd:choice>
                <xsd:element name="ARRAY" type="xsd:string" 
                  minOccurs="0"/>
           </xsd:sequence>
         </xsd:complexType>
    </xsd:schema>
  </types>

  <message name='Data'>
    <part name='dataParam' type='srv:idxType' />
  </message>

  <message name='dataResponse'/>
 
  <portType name='dataPortType'>
    <operation name='getData'>
      <input  name='idxData'  message='tns:Data'/>
      <output name='outData'  message='tns:DataResponse'/>
    </operation>
  </portType>

  <binding name='dataBinding' type='tns:dataPortType'>
    <soap:binding style='rpc' 
      transport='http://schemas.xmlsoap.org/soap/http'/>
    <operation name='getData'>
      <soap:operation soapAction='getData' style='rpc' />
      <input name='idxData'>
        <soap:body use='encoded' 
          encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'
            namespace="urn:Ops" />
      </input>
      <output name='outData'>
        <soap:body use='encoded' 
          encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
      </output>
    </operation>
  </binding>
 
  <service name="DataService">
    <port name="dataPort" binding="tns:dataBinding">
      <soap:address 
        location="http://localhost:8090/axis/servlet/AxisServlet"/>
    </port>
  </service>
 
</definitions>

I didn't get any complaint during the WSDL2Java run but looking at
the generated code I couldn't figure out how to set the sequence
part more then once.
Because of the definitions in the WSDL type section I expected to
find an array of the "sequence" defined in idxType because it is
defined as unbounded.  Did I made somthing wrong or is 
it a know problem?

Tia
Werner

Werner Dittmann
Siemens ICM N PG ES AS TP 
mailto:[EMAIL PROTECTED]
Tel: +49(0)89 722 42481/+49(0)172 85 85 245

Reply via email to