axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Severin Ecker (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AXIS2-2320) Package name generation does not match Namespace-Package mapping
Date Fri, 16 Mar 2007 09:26:09 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-2320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Severin Ecker updated AXIS2-2320:
---------------------------------

    Attachment: bug.wsdl

Hello,

i've stripped down the wsdl file to an absolute minimum, but this reflects more or less the
wsdl file that we're using.
as for the wsdl2java options i'm using the following:

-uri ${wsdl.file}
-o ${output.dir}
-d"/> <arg value="xmlbeans
-ss -sd -g -ssi -u
-p" /> <arg value="org.myCompany.service
-ns2p http://my-company.org/Service=org.myCompany.service

the directory names will be correct, but the import statements (e.g. in the ServerSkeleton)
use all lower case package names.

> Package name generation does not match Namespace-Package mapping
> ----------------------------------------------------------------
>
>                 Key: AXIS2-2320
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2320
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>            Reporter: Severin Ecker
>         Assigned To: Amila Chinthaka Suriarachchi
>         Attachments: bug.wsdl
>
>
> If namespace 2 package mappings are defined and those packages have upper case letters
the generated code won't compile due to an uppercase/lowercase naming issue.
> the fix i'm using is in class
> org.apache.axis2.wsdl.codegen.extension.PackageFinder
> change line
>    configuration.setPackageName(packageName.toLowerCase());
> to
>    configuration.setPackageName(packageName);
> i know uppercase letters are not the convention but still the code generated should be
correct and respect the namespace-package mappings defined.
> with this fix generation of types works fine, but generating server side sources (like
skeletons, stubs...) does still not work since the import statements there also use some kind
of toLowerString() which i haven't been able to track down yet.

-- 
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


Mime
View raw message