Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-4269

Axis2 - XMLBeans path naming inconsistencies

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.4.1
    • None
    • Tools
    • Windows

    Description

      I am using Axis2 1.4 and XMLBeans 2.4. I would like to use XMLBeans ant task to generate all the XMLBeans 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. The files are also very dynamic, hence I cannot use namespace remapping as a workaround.

      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 numeric paths - this is the issue!

      So, if I use wsdl2java to generate skels/stubs with -Ewsd, this difference changes the resource index mapping making it impossible to use the separately generated files.

      The solution would be for XMLBeans and Axis to have the same prefix for numeric path elements, or at least have the ability to specify a default.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              martinb Martin Barrs
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: