On Tuesday 28 October 2008 9:29:39 am Ostermueller, Erik wrote: > With our setup, CXFServlet loads with web.xml. > I'm thinking I should subclass CXFServlet and then configure the > services (like you showed me below) in that subclass after my beans.xml > is loaded. Does that sound right?
You can do it with the current cxf servlet. If you look at: http://svn.apache.org/repos/asf/cxf/trunk/systests/src/test/resources/webapp/WEB-INF/beans.xml you can see how configurations are added via the spring config. That does it for the simple frontend, but the jaxws frontend is similar. The default for JAXWS would look like: <bean class="org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean"> <property name="serviceConfigurations"> <list> <bean class="org.apache.cxf.jaxws.support.JaxWsServiceConfiguration"/> <bean class="org.apache.cxf.service.factory.DefaultServiceConfiguration"/> </list> </property> </bean> thus, just stick yours first in that list. Dan > -----Original Message----- > From: Daniel Kulp [mailto:[EMAIL PROTECTED] > Sent: Monday, October 27, 2008 2:21 PM > To: [email protected] > Cc: Ostermueller, Erik > Subject: Re: [revisiting] jax-ws @WebParam "Required" annotation? > > > If you use the ServerFactoryBeans (and not just > "Endpoint.publish(...)"), you can call: > > factory.getServiceFactory().getConfigurations() > or setConfigurations() to manipulate the list of configurations. In > general, you would do something like: > > factory.getServiceFactory().getConfigurations().add(0, yourConfig); > > Dan > > On Monday 27 October 2008 1:05:22 pm Ostermueller, Erik wrote: > > http://www.nabble.com/[EMAIL PROTECTED] > > 83 > > 7631.html > > > > In the above thread, Dan wrote: > > >> With 2.1.3, you will be able to write a ServiceConfiguration object > > > > that > > > > >> can override the getWrapperPartMinOccurs method to return 1 instead > > > > of > > > > >> 0. You can try the 2.1.3 snapshots if you want to play with that. > > > > I'm doing java-first and would like to take a look at trying this. > > How do you associate a custom ServiceConfiguration with the service? > > Perhaps you could point me to a particular junit test that does > > this... > > > > -- > Daniel Kulp > [EMAIL PROTECTED] > http://dankulp.com/blog > > _____________ > > The information contained in this message is proprietary and/or > confidential. If you are not the intended recipient, please: (i) delete the > message and all copies; (ii) do not disclose, distribute or use the message > in any manner; and (iii) notify the sender immediately. In addition, please > be aware that any message addressed to our domain is subject to archiving > and review by persons other than the intended recipient. Thank you. > _____________ -- Daniel Kulp [EMAIL PROTECTED] http://dankulp.com/blog
