But that is the old 2.0 docs...they say massive changes were done in the 2.1 version: http://cwiki.apache.org/CXF20DOC/introduction-to-aegis-21.html
The 2.1 docs don't have any examples of integrating with JAXWS endpoints...is the same format as the old 2.0 one? On Mon, Aug 10, 2009 at 2:30 PM, Bruno Melloni <[email protected]>wrote: > Have you looked at Aegis databinding? > http://cwiki.apache.org/CXF20DOC/aegis-databinding.html > (I know nothing about it but some quick Google searches pointed me that > way) > > > -----Original Message----- > From: Jacek Furmankiewicz [mailto:[email protected]] > Sent: Monday, August 10, 2009 1:16 PM > To: [email protected] > Subject: Re: Code first with Spring: generating required or minOccurs on > method parameters > > You can add @XmlAttribute on JaveBean getters and that works. But I need to > add it on actual @WebMethod parameters (i.e. they all have to be > mandatory)...can't seem to find a way to do that. > > Also, I tried using @XmlElement on the JavaBean getters with > required=true,nillable=false and the generated WSDL seemed to ignore that > completely. It seemed to honor required=true only if I mapped > by JavaBean property using @XmlAttribute... > > Thanks, Jacek > > On Mon, Aug 10, 2009 at 1:15 PM, Bruno Melloni > <[email protected]>wrote: > > > I might be hallucinating... because I thought I was using it in my code > and > > wasn't, but I think I saw annotations 'somewhere' to achieve both > minOccurs > > and nillable=false. > > > > I know it is not really an answer, but it might be something to check out > > while you wait for someone more knowledgeable to reply. > > > > bruno > > > > -----Original Message----- > > From: Jacek Furmankiewicz [mailto:[email protected]] > > Sent: Monday, August 10, 2009 8:38 AM > > To: [email protected] > > Subject: Code first with Spring: generating required or minOccurs on > method > > parameters > > > > I am exposing a code-first webservice via Spring using the > jaxws:endpoint, > > e.g.: > > > > <import resource="classpath:META-INF/cxf/cxf.xml" /> > > <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" /> > > <import resource="classpath:META-INF/cxf/cxf-servlet.xml" /> > > > > <jaxws:endpoint > > id="aps200" > > implementor="com.test.IdAccountProvisioningWebServiceImpl" > > address="/id-account-provisioning-service/2.0.0" /> > > > > How do I control the minOccurs on my method parameters? I want them all > to > > be set to 1 and nillable=false by default? > > > > I've seen some entries in the Wiki for Aegis and ServiceFactory, > etc...but > > I > > do not have any of these in my Spring config...just the simple > > jaxws:endpoint. > > > > Thanks, > > Jacek > > >
