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 "Ajith Harshana Ranabahu (JIRA)" <ji...@apache.org> on 2006/04/25 12:44:07 UTC

[jira] Updated: (AXIS2-614) Multiple namescape mappings and exclusions for code generation

     [ http://issues.apache.org/jira/browse/AXIS2-614?page=all ]

Ajith Harshana Ranabahu updated AXIS2-614:
------------------------------------------

    Priority: Minor  (was: Major)

The namespace mapping feature is added to the codegenerator. Although not with the same syntax the namespace to package name mapping is available now (atleast for ADB and XMLbeans)
Hence I am downgrading the criticality of this issue

> Multiple namescape mappings and exclusions for code generation
> --------------------------------------------------------------
>
>          Key: AXIS2-614
>          URL: http://issues.apache.org/jira/browse/AXIS2-614
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Improvement

>   Components: Tools
>     Versions: 0.95
>     Reporter: Ralf Taugerbeck
>     Priority: Minor

>
> The "axis-wsdl2java" ANT task in Axis 1.x allows to generate Java code for complex WSDL files that reference more than one XML schemas. Using nested <mapping> tags each namespace can be mapped to a different package. Morerover it is possible to exclude namespaces using nested <nsexclude> tags. This is useful to exlude externally provided packages like ws-addressing. See the following example:
> 		<axis-wsdl2java
> 			output="src/gen"
> 			factory="org.apache.axis.message.addressing.tools.wsdl.JavaAddressingGeneratorFactory"
> 			url="${wsdl}" >
> 			
> 			<nsexclude namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
> 			<mapping namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing" package="org.apache.axis.message.addressing" />
> 			<mapping namespace="http://docs.oasis-open.org/asap/1.0/asap.xsd" package="mytest.ws.asap" />
> 			<mapping namespace="http://www.wfmc.org/wfxml/2.0/" package="mytest.ws.wfxml" />
> 			...
> 		</axis-wsdl2java>
> I have not discovered similiar functionality in the code generation tool provided with Axis2, yet.

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