[ http://issues.apache.org/jira/browse/AXIS2-614?page=comments#action_12376868 ]
Thilo Frotscher commented on AXIS2-614: --------------------------------------- Can you please provide a link where to find documentation for the mapping feature or post a short explanation here? Thanks! > 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