[
http://issues.apache.org/jira/browse/AXIS2-1609?page=comments#action_12457738 ]
Craig S. Bosma commented on AXIS2-1609:
---------------------------------------
I made the following change to SchemaCompiler in the adb-codegen module,
replacing this line (~244):
writer.registerExtensionMapperPackageName(URLProcessor.makePackageName(nsp));
with this:
if (options.getNs2PackageMap().containsKey(nsp)) {
writer.registerExtensionMapperPackageName((String)
options.getNs2PackageMap().get(nsp));
} else {
writer.registerExtensionMapperPackageName(URLProcessor.makePackageName(nsp));
}
which solves the latter problem from the previous comment. I'll try to free up
a little time tonight to generate and submit patches for these, if this is
indeed the desired behaviour and a reasonable solution.
> namespace to package (ns2p) code gen option does not work in Axis2 1.1 RC2
> --------------------------------------------------------------------------
>
> Key: AXIS2-1609
> URL: http://issues.apache.org/jira/browse/AXIS2-1609
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.1
> Environment: Win XP, JDK 1.5
> Reporter: Charitha Kankanamge
> Priority: Critical
> Attachments: expression.xsd, FehlerWsdl2Java.zip,
> KeinFehlerWsdl2Java.zip, MathsService.wsdl, saw-local.wsdl, SAWServices.xsd
>
>
> ns2p code gen option does not work in Axis2 1.1 RC2.
> I provided the following code gen option.
> C:\Axis\axis-rc\axis2-1.1\bin>wsdl2java -uri "C:\Documents and
> Settings\Charitha\workspace2\servicetest\temp2\MathsService.wsdl" -ns2p
> http://test.com=my.new
> -o "C:\Documents and
> Settings\Charitha\workspace2\servicetest\temp2\packagetest"
> The generated stub was not included in the given package (my.new). Instead,
> it was included inside the original package (com.test)
> The wsdl file is attached here with.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]