I have done this in the build XML file...you could use the mapping XML tags within the <axis-wsdl2java>, for example::

<axis-wsdl2java
output="/src"
deployscope="Application"
verbose="true"
url="${Service}">
<mapping namespace="base.mycompany.com " package="com.mycompany.x1"/>
<mapping namespace="operation.base.mycompany.com" package="com.mycompany.x2"/>
</axis-wsdl2java>




From: "Marepalli, Somesh" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>
Subject: RE: namespace and java class mapping
Date: Mon, 2 Feb 2004 15:16:34 -0500

Hi:
   For WSDL2Java, look at the --NStoPkg option. I believe it should
address your problem
  It's equivalent to what Castor offers IMHO

Regards
-Somesh

-----Original Message-----
From: Liu, Scott [mailto:[EMAIL PROTECTED]
Sent: Monday, February 02, 2004 3:14 PM
To: [EMAIL PROTECTED]
Subject: namespace and java class mapping

Hi, All,

In using WSDL2java to generate java classes Axis creates java packages
using the namespaces by default. When there is only one namespace there
is a command option "-p" to create classes for a user defined package.
Does anyone know if there is a way to map more than one namespace to
different packages at the same time? In other words
urn:base.mycompany.com maps to com.mycompany.x1 and
urn:operation.base.mycompany.com to com.mycompany.x2.

The Castor solves this problem by providing namespace to package mapping
in the castorbuilder.properties.

Thanks,

Scott






_________________________________________________________________
High-speed users�be more efficient online with the new MSN Premium Internet Software. http://join.msn.com/?pgmarket=en-us&page=byoa/prem&ST=1




Reply via email to