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

Axis2 update from 1.6.2 to 1.7.1 missing types, web service operation doesn't work anymore

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Incomplete
    • 1.7.1
    • None
    • databinding, kernel
    • None

    Description

      Hi,

      i've update recently our axis2 from 1.6.2 to 1.7.0 and at the begining no ws was working anymore. I saw afterwards that 1.7.1 was released installed that one and worked till i've started to check ever operation in my services.

      The Problem: Object structure as return types. I knew that was a problem before and some types need to be exposed directly in service but now after the update some types that were before working now don't work anymore. The same thing with generic classes... a bit dissapointed i may say, i was positive surprised about the maps and lists as return types and now it's even worste as before. Some examples that in 1.6.2 have worked and now doesn't work anymore:

      public DataList<CustomError> doUpdateAxis() {
          // DataList ist not known, not present in TypesTable.
      }
      public Response doUpdateAxis() {
       
      }
       

      Where response looks like:

      public class Response {
          private Header header;
          private Content content;
         // getters, setters section
      }
       
      public class Content {
          // here can be everything, of course some of these types will not be found in TypesTable
          private Object payload;
      }
      

      Workarounds:

      // in service class expose types
      public DataList exposeDataList(){
         return null;
      }
      

      Any ideas why axis can't do this by itself object structure? Some other experierences? Why is after update wrong, I mean we have enum support now but stuff isn't working anymore!

      Thanks and regards,

      Vasile

      Attachments

        Activity

          People

            Unassigned Unassigned
            vbucur Vasile Bucur
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: