You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Alexey Moskvin (JIRA)" <ji...@apache.org> on 2009/12/30 16:34:29 UTC

[jira] Created: (CXF-2598) Can/t set minOccurs="1" with annotations

Can/t set minOccurs="1" with annotations
----------------------------------------

                 Key: CXF-2598
                 URL: https://issues.apache.org/jira/browse/CXF-2598
             Project: CXF
          Issue Type: Bug
          Components: Aegis Databinding
    Affects Versions: 2.2.5
            Reporter: Alexey Moskvin
            Priority: Minor


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.




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CXF-2598) Can/t set minOccurs="1" with annotations

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-2598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp resolved CXF-2598.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.2.6
         Assignee: Daniel Kulp

> Can/t set minOccurs="1" with annotations
> ----------------------------------------
>
>                 Key: CXF-2598
>                 URL: https://issues.apache.org/jira/browse/CXF-2598
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    Affects Versions: 2.2.5
>            Reporter: Alexey Moskvin
>            Assignee: Daniel Kulp
>            Priority: Minor
>             Fix For: 2.2.6
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.