axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oscar (JIRA)" <>
Subject [jira] [Created] (AXIS2-5940) WSDL2Java -p --package does not generate all classes under the given package
Date Wed, 14 Nov 2018 09:12:00 GMT
Oscar created AXIS2-5940:

             Summary: WSDL2Java -p --package does not generate all classes under the given
                 Key: AXIS2-5940
             Project: Axis2
          Issue Type: Bug
          Components: codegen, wsdl
    Affects Versions: 1.7.8
            Reporter: Oscar

I am trying to force WSDL2Java ({{org.apache.axis2.wsdl.WSDL2Java}}) to generate all the classes
under a given base package, for example com.mycompany.thewebservice.*

According to [the documentation|]
the -p option should do the trick:

_-p --package The target package name. If omitted, a default package (formed using the target
namespace of the WSDL) will be used._

But unfortunately when we use the -p option, only the 3 main classes (,
and are generated under the given package. Many other packages are generated
like for example:
 * com.theservice.*
 * org.w3.www._2004._60.xmlmime
 * org.xmlsoap.schemas.soap.encoding

This is a mess for us because we integrate many webservices and we want to keep all the classes
for a service under a common base folder.

We were using Axis 1 in the past and its WSDL2Java ({{org.apache.axis.wsdl.WSDL2Java}}) has
a parameter --package that works like a charm. In this case all the classes are neatly generated
under the package that I specify.

This message was sent by Atlassian JIRA

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

View raw message