axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Serg Mazurok <>
Subject wsdl2java incorrectly generate java stub
Date Thu, 09 Aug 2007 16:47:38 GMT
Hello guys!

I had used Axis 1.4 to generate Java proxies. Generated sources didn't 
match the WSDL definition - method signature contain array instead of 
complex object.

I presume that method signature should contain complex object 
containing  vehicle array, limit, offset, resultSizeType, 
responseSizeType. But finally I got the array instead of desired complex 

/WSDL2J generated Method signature: /
public *[]* 
getVehicle( getVehicleRequest) 
throws java.rmi.RemoteException;

/Expected :/ 
public GetVehicleResponse 
getVehicle( getVehicleRequest) 
throws java.rmi.RemoteException;
 GetVehicleResponse should contain  VEHICLE array, limit, offset, 
resultSizeType, responseSizeType

/WSDL fragment: /
<xs:element name="GetVehicleResponse">
                        Response document for getVehicle
                        <xs:element maxOccurs="unbounded" minOccurs="0" 
                    <xs:attribute name="limit" type="tp:limitType"/>
                    <xs:attribute name="offset" type="tp:offsetType"/>
                    <xs:attribute name="resultSize" 
                    <xs:attribute name="responseSize" 

Tnx in advance
Any help or suggestion are highly appreciated

P.S. I had attached the WSDL file

View raw message