The second form below will work, but you need to endorse the jaxb-api 2.2 jar 
to get the version of XmlElement that is allowed on the parameter.

Dan


On Sunday, May 22, 2011 2:20:19 AM marcin.kasin...@gmail.com wrote:
> Hello.
> 
> I searched forum, but I couldn't find anwser for my question.
> 
> I try to change minOccurs in my code from 0 to 1.
> 
> In my Interave I placed code:
> 
>       public TST4 helloWorld(@WebParam(name = "arg111")
> @org.apache.cxf.aegis.type.java5.XmlElement(name =
> "arg111",minOccurs="1")TST4 in);
> 
> 
> I was expected to have minOccurs="1" in my WSDL.
> 
> 
> I tried also with:
> 
>       public TST4 helloWorld2(@WebParam(name = "arg111")
> @javax.xml.bind.annotation.XmlElement(name = "arg111",required=true)TST4
> in);
> 
> In this code I get error "annotation is disallowed in this location"
> 
> Can you tell me how to set this minnoccurs value ?
> 
> I dont want to set in globally . I want to set it in my methods
> dynamically, because somethimes I need 0, somethimes I need 1.
> 
> Regards
> 
> Marcin
> 
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/CXF-And-minOccurs-1-on-operation-parameter
> s-tp4416260p4416260.html Sent from the cxf-dev mailing list archive at
> Nabble.com.

-- 
Daniel Kulp
dk...@apache.org
http://dankulp.com/blog
Talend - http://www.talend.com

Reply via email to