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

WSDL2Java bug when same named element under different name space

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 1.7.7
    • None
    • wsdl
    • None
    • Windows 7 64-bits.

    Description

      Hi,

      I am using WSDL2Java to generate my java classes but I am having a problem with a WSDL that contains the same named element under different namespaces. When I try I get the error "The referenced element ... was not found".

      I use wsdt2java as: wsdt2java.bat -o c:/teste -uri c:/teste/PefService.wsdl -suppress-prefixes

      The same error appears in the 3 versions I try: 1.5.2, 1.6.2 and 1.7.7.

      The exactly error I get from this wsdl is: "The referenced element '

      {http://schemas.ipc.adm.br/efrete/pef/AdicionarViagem}

      Viagens' was not found!". The complete error is attached.

      The WSDL to replicate the error is attached, and also can be obtained here: https://dev.efrete.com/Services/PefService.asmx?wsdl

      Any help is appreciated.

      Attachments

        1. PefService.wsdl
          123 kB
          Bruno Ramos
        2. error.txt
          4 kB
          Bruno Ramos
        3. error1.7.7.txt
          4 kB
          Bruno Ramos

        Activity

          People

            Unassigned Unassigned
            NeoRamza Bruno Ramos
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: