Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6276

Some non-primitive properties lost during generating WADL

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      There are 2 classes:
      Team {
      String teamName;
      Person manager;
      Person member;
      }
      Person {
      String firstName;
      String lastName;
      }

      if Team is an object annotated with @FormParam("") in a POST service method, then the generated WADL seems like the following:
      <representation mediaType="application/x-www-form-urlencoded">
      <param name="teamName" style="query" type="xs:string"/>
      <param name="manager.firstName" style="query" type="xs:string"/>
      <param name="manager.lastName" style="query" type="xs:string"/>
      </representation>
      as you saw, "member" get lose. Sometimes the lost is "manager".

      Attachments

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            pqian Pengling Qian
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified