[prev in list] [next in list] [prev in thread] [next in thread]
List: axis-dev
Subject: [jira] Commented: (AXIS2-2487) WSDL2Java creates inconsistent
From: "Swati Sinha (JIRA)" <jira () apache ! org>
Date: 2007-04-30 18:57:15
Message-ID: 3798876.1177959435317.JavaMail.jira () brutus
[Download RAW message or body]
[ https://issues.apache.org/jira/browse/AXIS2-2487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12492750 \
]
Swati Sinha commented on AXIS2-2487:
------------------------------------
This line in PackageFinder.java
configuration.setPackageName(packageName.toLowerCase());
is the cause of the problem.
> WSDL2Java creates inconsistent pacakge names if the package name has any uppercase \
> characters
> ---------------------------------------------------------------------------------------------
>
> Key: AXIS2-2487
> URL: https://issues.apache.org/jira/browse/AXIS2-2487
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: adb
> Affects Versions: nightly
> Environment: Axis 1.5, Tomcat 5.5, Axis2 1.2 SNAPSHOT , Eclipse 3.2, WTP 1.5.1, \
> Windows 2003 server
> Reporter: Tim Buss
> Assigned To: Amila Chinthaka Suriarachchi
>
> Thik this problem existed in earlier releases also
> If you try to generate a Service called say, ExampleService, and use the namespace \
> to package mapping option " -ns2p <ns1>=<pkg1>[,....] " and you specify a package \
> name like myorg.ExamplePackage as in
> -ns2p urn:example.namespace=myorg.ExamplePackage
> then the "type" code files generated will observe this and create classes in the \
> package myorg.ExamplePackage but all the "service" code files generated eg: \
> ExampleService.java ExampleService.MessgeReceiverInOut.java
> ExampleServiceSkeleton.java
> ExampleServiceSkeletonInterface.java
> ExampleServiceStub.java
> have the package name changed to all lower case (ie myorg.examplepackage)
> I realize that it is a java convention to use all lowver case for package names but \
> the code generated should be consistent and should take what the user gives. This \
> does not seem an appropriate plac eto enforce the pacakge name convention. I think \
> the eclipse plugin in 1.1.1 refuses to work if a mixed case package name is \
> specified which seems wrong. At mose it should issue a warning. It is probably a \
> "minor" bug really but if you happen to need it to work as I do, the workaround is \
> somewhat painful and I suspect it's fairly easy to fix.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic