wadl
  1. wadl
  2. WADL-47

When we have separate complexType and element definition code generated is incorrect.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.1
    • Fix Version/s: current
    • Component/s: None
    • Labels:
      None

      Description

      If you have a schema which look like this:

      <xs:schema>
      <xs:element name="foo" type="bar" />
      <xs:complexType name="bar" />
      </xs:schema>

      Then the code needed to be generated for parameters, not returns, will be default require the enclosing JAXBElement, more on this here:

      http://weblogs.java.net/blog/kohsuke/archive/2006/03/why_does_jaxb_p.html

      So the user can work around this by specifying the xjc:simple binding file, which are are probably going to do by default in JDeveloper - this won't cover all cases.

      So we need to test in the case of a parameter; but not a return type, whether the type in question is XmlRootElement or XmlType so in order to generate the right parameter wrapped with a JAXBElement, I guess we are going to have to create a GenericType for this also.

        Activity

        Hide
        gdavison added a comment -

        In the case of a file with only @XmlType on it we generat ea JAXBElement to wrap
        the element before we invoke the Client method.

        http://java.net/projects/wadl/sources/svn/revision/327

        This removed the need for the simple binding.

        Show
        gdavison added a comment - In the case of a file with only @XmlType on it we generat ea JAXBElement to wrap the element before we invoke the Client method. http://java.net/projects/wadl/sources/svn/revision/327 This removed the need for the simple binding.

          People

          • Assignee:
            gdavison
            Reporter:
            gdavison
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: