axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Blair, Matthew" <>
Subject RE: Axis generates all classes but not Axis2?
Date Thu, 21 Apr 2011 08:53:07 GMT
Have you considered using the -u option to "unpack all classes"?  This
option will force wsdl2java to move all of those inner classes that are
generated in the stub to separate class files, which will cut down the
size of the stub considerably.



On Behalf Of fire fox
Sent: Thursday, April 21, 2011 01:44
Subject: Re: Axis generates all classes but not Axis2?


Please help. Actually, this CRM provides two WSDL files. Even though  I
could use -ss -g option for the attached WSDL file, I can not use the
same for other WSDL, since -ss -g options is resulting in generation of
stubs larger than 50 MB of disk space. 


Axis 1.x remains same, creates all required ones, with reasonable disk
space. But, the goal itself is to upgrade from Axis 1.x to Axis2.


Any ideas? 



On Thu, Apr 21, 2011 at 9:04 AM, fire fox <> wrote:

Yeah, even I observed that. The problem is apparent since we can't use
-g with out -ss option. 


Please help.


On Wed, Apr 20, 2011 at 6:38 PM, Supun Malinga <> wrote:

Hi All,

On Wed, Apr 20, 2011 at 6:08 PM, fire fox <> wrote:

Hi All, 


     I've attached the WSDL file I'm working on. 


I've generated stubs using following commands


Axis: java org.apache.axis.wsdl.WSDL2Java CrmDiscoveryServiceWsdl.xml :
Generates all classes


Axis2 : wsdl2java.bat -u -uri CrmDiscoveryServiceWsdl.xml : Generates
only a few classes. 


           Pattern I observed is, in the wsdl:types section, it has
created classes for the <s:element> types but not  <s:complexTypes>. I
don't get why. I have to use those complexType elements to consume


I've also tried -pn, -ap options, thought they might work, but ports had
nothing to with this. I understood after I did it. 


Note: I could generate all with Axis2 when I use -ss -g options, 


when using only -ss without -g option the classes are not generated
either. So it seems -g (generate all classes) option is required. I'm
also interested to know a probable explanation to this.




which also generates server side. Obviously, it's a workaround and I
don't need atleast some of them.


Please help.





To unsubscribe, e-mail:
For additional commands, e-mail:

Supun Malinga,

Software Engineer,
WSO2 Inc.
email - <> 
mobile - 071 56 91 321



View raw message