On Monday 28 April 2008, John-M Baker wrote: > Daniel, > > Am I right in saying the process bound to the port handles REST and > Webservices?
Yes. You can deploy a single CXFServlet that will allow multiple CXF things to be bound into it. > I.e. one jaxws:endpoint declaration will cope with both? Well, you can also have muliple jaxws:endpoint declarations in the same xml file. Some can be http/rest based, others can be soap based, with 2.1, some can even be JAX-RS based. The CXFServlet will send the request into the correct implementation and make sure the proper formats and stuff are used. Dan > Simply add ?wsdl to the URL and you get a WSDL... The only difference > in the example code I've seen is the WS bean is not set to with > JaxWsServiceFactoryBean.setWrapped(true). > > > John Baker > -- > Web SSO > IT Infrastructure > Deutsche Bank London > > URL: http://websso.cto.gt.intranet.db.com > > > > > Daniel Kulp <[EMAIL PROTECTED]> > 28/04/2008 15:35 > Please respond to > [email protected] > > > To > [email protected] > cc > John-M Baker/ext/[EMAIL PROTECTED] > Subject > Re: CXF 2.1, Rest and Spring configuration > > > > > > > > John, > > If you are using the CXFServlet, then your servlet container will > control what port you are using. Thus, the address should just be > the "extension" off of the context from the servlet. Like: > > address="/blah" > > If the servlet is configured in the web.xml as "/cxf" and tomcat is on > 8080, then the full address to hit would be: > http://localhost:8080/cxf/blah > > Dan > > On Monday 28 April 2008, John-M Baker wrote: > > Sergey, > > > > Where's the documentation for this: > > > > <jaxws:endpoint id="userService" > > > > implementor="com.db.websso.rest.server.ApplicationConfigurationServi > >ce Impl" address="http://localhost:9090/applicationConfiguration" > > bindingUri="http://apache.org/cxf/binding/http"> > > <jaxws:serviceFactory> > > <bean > > class="org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean"> > > <property name="wrapped" value="true" /> > > </bean> > > </jaxws:serviceFactory> > > </jaxws:endpoint> > > > > You can see I've passed localhost:9090 in the address parameter, and > > while the web app starts with no errors, nothing binds to 9090. And > > I've updated web.xml to include the CXFServlet and start Spring. > > > > I have to say, this does seem like a lot of effort for something > > that's so easy in a few lines of code. I'd love to see this much > > easier to configure... > > > > Would appreciate some thoughts. > > > > > > John Baker -- J. Daniel Kulp Principal Engineer, IONA [EMAIL PROTECTED] http://www.dankulp.com/blog
