You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Eric Pederson (JIRA)" <ji...@apache.org> on 2010/10/15 23:50:33 UTC

[jira] Updated: (CXF-3069) XmlElement(required=true) on @WebParam not honored in WSDL

     [ https://issues.apache.org/jira/browse/CXF-3069?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Pederson updated CXF-3069:
-------------------------------

    Attachment: cxf3069.tar

Test project attached.

> XmlElement(required=true) on @WebParam not honored in WSDL
> ----------------------------------------------------------
>
>                 Key: CXF-3069
>                 URL: https://issues.apache.org/jira/browse/CXF-3069
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.3.0
>            Reporter: Eric Pederson
>         Attachments: cxf3069.tar
>
>
> My service looks like this:
> @WebService
> public interface ServiceTest
> {
>     @WebMethod(operationName="testService")
>     public void testService(
>             @WebParam(name="foo")
>             @XmlElement(required=true)  
>             String foo,
>             @WebParam(name="bar")
>             int bar
>     );
> }
> But the WSDL fragment for the testService method request looks like:
> <xs:complexType name="testService"> 
>     <xs:sequence> 
>       <xs:element minOccurs="0" name="foo" type="xs:string"/> 
>       <xs:element name="bar" type="xs:int"/> 
>     </xs:sequence> 
>   </xs:complexType> 
> I did the endorsed dirs thing and think CXF is seeing the JAX-WS 2.2 jars.  To test did the following:
> - Checked the value of org.apache.cxf.jaxws.spi.ProviderImpl.isJaxWs22(), it returns true
> - Checked the class of my endpoint, it is org.apache.cxf.jaxws22.spring.JAXWS22SpringEndpointImpl
> (I am not sure if this is a sufficient test.)  

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