jax-ws
  1. jax-ws
  2. JAX_WS-1037

Customization option to unwrap objects to collections

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.2.5
    • Fix Version/s: None
    • Component/s: wsgen
    • Labels:
      None

      Description

      When <xsd:complexType> contains only one <xsd:sequence> it is possible to unwrap the given object into java.util.List. It would be nice if wsgen supports this as an extension.

      From:

      public ArrayOfExtRef csid2ExtRefs(@WebParam(name = "datasources", targetNamespace = "...") ArrayOfString datasources);
      

      to:

      public List<ExtRef> csid2ExtRefs(@WebParam(...) List<String> datasources);
      

      More detailed information is in stackoverflow post.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Dmitry Katsubo
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: