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

Can/t set minOccurs="1" with annotations

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.5
    • Fix Version/s: 2.2.6
    • Component/s: Aegis Databinding
    • Labels:
      None

      Description

      Hi, I use CXF & aegis binding for webservices.
      For such java method:
      public Calendar getSysdate()
      I tried this annotations:
      @org.apache.cxf.aegis.type.java5.XmlElement(nillable=false, minOccurs="1")
      and
      @javax.xml.bind.annotation.XmlElement(required=true)
      but there is still

      <xsd:complexType name="getSysdateResponse">
      <xsd:sequence>
      <xsd:element minOccurs="0" name="return" type="xsd:dateTime"/>
      </xsd:sequence>
      </xsd:complexType>

      is generated WSDL file.
      When we build .NET code based on this WSDL this function becomes void (because of minOccurs="0").
      Is it possible to set minOccurs="1". Thanks.

        Attachments

          Activity

            People

            • Assignee:
              dkulp Daniel Kulp
              Reporter:
              dbf Alexey Moskvin
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: