You could probably use an xsdconfig file to specify the namespaces to package name mapping. Also, with a mix of xsds and wsdls have you thought about using sfactor to create a schema containing common types and elements. HTH, -jacobd
On Wed, Mar 11, 2009 at 8:49 AM, <martin.ba...@wellsfargo.com> wrote: > Hello, > > I am using Axis2 1.4 and XMLBeans 2.4. I would like to use XMLBeasn ant > task to generate all the XMLBeasn artifacts and use Axis2 to just generate > the skels and stubs. This is because I have a mix of .wsdl’s and .xsd’s I > need to generate and would like to normalize the resource files. > > What I’ve found is, though, that the Axis2 tasks and XMLBeans tasks name > entities differently when a span in the entity path starts with a number. > For example: > > Element namespace – com/example/testService/2009/03 > > Schema – com/example/testService/2009/03/myTestSchema > > XMLBeans generated element – com.example.testService.x2009.x03 > .myTestSchema > > Axis2 generated element – com.example.testService._2009._03 > .myTestSchema > > Note that XMLbeans prepends ‘x’ and Axis2 ‘_’ to numerics. > > This difference changes the resource index mapping making it impossible to > use the separately generated files. > > Can anyone tell me how to normalize the naming between Axis2 and XMLBeans? > > Thanks in advance, > > Martin > >