Oscar created AXIS2-5940:
----------------------------

             Summary: WSDL2Java -p --package does not generate all classes 
under the given package
                 Key: AXIS2-5940
                 URL: https://issues.apache.org/jira/browse/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|https://axis.apache.org/axis2/java/core/tools/CodegenToolReference.html#cmdref]
 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 
(XService.java, XCallbackHandler.java and XServiceStub.java) 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
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org
For additional commands, e-mail: java-dev-h...@axis.apache.org

Reply via email to