[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rampart-dev
Subject:    [jira] [Created] (AXIS2-5940) WSDL2Java -p --package does not generate all classes under the given p
From:       "Oscar (JIRA)" <jira () apache ! org>
Date:       2018-11-14 9:12:00
Message-ID: JIRA.13198271.1542186708000.343160.1542186720842 () Atlassian ! JIRA
[Download RAW message or body]

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-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic