You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org> on 2007/03/16 06:35:10 UTC

[jira] Commented: (AXIS2-2320) Package name generation does not match Namespace-Package mapping

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

Amila Chinthaka Suriarachchi commented on AXIS2-2320:
-----------------------------------------------------

can you attach your wsdl and metion the options you used to generate the code?

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