axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "R J Scheuerle Jr" <>
Subject Re: AXIS alpha3 does not generate all classes
Date Sat, 16 Feb 2002 16:07:54 GMT
I ran the current version of WSDL2Java, and it appears that all of the
files are properly generated.          deploy.wsdd   undeploy.wsdd   

Rich Scheuerle
XML & Web Services Development
512-838-5115  (IBM TL 678-5115)

                      R J Scheuerle                                                      
                      Jr/Austin/IBM@IBM        To:        
                      US                       cc:        
                                               Subject:  Re: AXIS alpha3 does not generate
all classes                            
                      02/15/2002 09:10                                                   
                      Please respond to                                                  


Thanks for the note.

The WSDL2Java only generates referenced types.  It appears that you may
have found a bug.  The reference to  ArrayOfSOAPStruct should cause
SOAPStruct to be referenced and thus generated.

1) Could you verify that this problem occurs with the latest version of
Axis.  There have been several changes in the last month related to
reference relationships.

2) Your wsdl definition of ArrayOfSOAPStruct is a little strange.  You may
want to get rid of the attribute element in the ArrayOfSOAPStruct

Please send me a reply.  I may have time to do further digging on Monday.

Rich Scheuerle
XML & Web Services Development
512-838-5115  (IBM TL 678-5115)


                      Hartmann                 To:
                      <        cc:

                      >                        Subject:  AXIS alpha3 does
not generate all classes

                      02/13/2002 01:01


                      Please respond to



I have a problem with AXIS alpha3 not generating all java classes
when using arrays of complex types:

My WSDL file (please find array.wsdl as an attachement) contains a
array definition as well as a complex type definition (which is the
array base element).

If I uncomment the comment-out parts all classes gets generated, but
I really do not need the additional defined operation etc.

If I leave the comments inside, some java source files are missing
after the generation (according to the file system contents and
compiler error messages).

BTW: I use the following command (CLASSPATH includes the neccessary
      JAR files):
      $ java org.apache.axis.wsdl.Wsdl2java -s -o classes array.wsdl

Any hints?

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="" xmlns:SOAP-ENC="" xmlns:s="http://aaa.bbb/ccc/xsd"
xmlns:soap="" xmlns:tns="
http://aaa.bbb/ccc" xmlns:wsdl="" xmlns:xsd
="" name="xyz" targetNamespace="

                         <schema xmlns=""
                                     <complexType xmlns="" name="ArrayOfSOAPStruct">
                                                 <complexContent xmlns="">
xmlns="" base="SOAP-ENC:Array">

<sequence xmlns="">

       <element xmlns="" maxOccurs
="unbounded" name="item" type="s:SOAPStruct"/>


<attribute xmlns="" ref
="SOAP-ENC:arrayType" wsdl:arrayType="s:SOAPStruct[]"/>
                                     <complexType xmlns="" name="SOAPStruct">
                                                 <sequence xmlns="">
                                                             <element xmlns
="" name="varString" type="string"/>
                                                             <element xmlns
="" name="varInt" type="int"/>
                                                             <element xmlns
="" name="varFloat" type="float"/>
                                                             <element xmlns
="" name="varBase64" type="base64Binary"/>
                                                             <element xmlns
="" name="varDateTime" type="dateTime"/>
                                                             <element xmlns
="" name="varDecimal" type="decimal"/>
                                                             <element xmlns
="" name="varBoolean" type="boolean"/>

 <message xmlns="" name="
         <part name="inputStruct" type
 <message xmlns="" name="_echoStructResponse">
<part name
="return" type="s:SOAPStruct"/>

             <message xmlns="" name
                         <part name="inputStructArray" type
             <message xmlns="" name
                         <part name="return" type="s:ArrayOfSOAPStruct"/>

             <portType xmlns="" name
       <operation name="_echoStruct" parameterOrder="inputStruct">
<input message="tns:_echoStructRequest" name="echoStruct"/>
<output message="tns:_echoStructResponse" name
                         <operation name="echoStructArray" parameterOrder
                                     <input message
="tns:echoStructArrayRequest" name="echoStructArray"/>
                                     <output message
="tns:echoStructArrayResponse" name="echoStructArrayResponse"/>

             <binding xmlns="" name
="ArrayBinding" type="tns:ArrayPort">
                         <soap:binding style="rpc" transport=""/>
       <operation name="_echoStruct">
<soap:body encodingStyle=""
namespace="" use="encoded"/>
                     <soap:body encodingStyle="" namespace="" use="encoded"/>
                         <operation name="echoStructArray">
                                     <soap:operation soapAction="
                                                 <soap:body encodingStyle="" namespace="" use="encoded"/>
                                                 <soap:body encodingStyle="" namespace="" use="encoded"/>

        <service xmlns="" name
          <port binding="tns:ArrayBinding" name="ArrayService">
            <soap:address location="


View raw message