Quick question: is it possible to configure rest (http-binding) using Spring? If so, how's this done? Maybe someone could post a simple translation of restful_http_binding to use Spring, instead of the JaxWsServerFactoryBean. I can get JaxWsServerFactoryBean working, but no matter what I've tried (its been hours now), I can't get the Spring setup to work.
Using jaxws:endpoint, with a bindingUri of http://apache.org/cxf/binding/http and importing the -http-binding.xmlSpring config, no dice. Complains that there's no destination factory for SOAP (?!?). If I import the -soap.xml Spring config, then I get a ClassCastException for BindingInfo. I've tried changing the order of imports, no dice. I am running in a minimal web container (winstone), to minimize container weirdness. Also - its unclear from the docs if I need to import cxf-servlet.xml or not (I've tried both, doesn't seem to impact things at the point where I'm getting the exception(s)). Btw - is an equivalent to the jsr181-api JAR included in the CXF download under a different name? I went and grabbed the xfire-jsr181-api-...M1.jar from codehaus, because I couldn't find the right annotations in jaxws. At least, the annotations referenced in the docs (@WebService, @WebResult, etc.) are not in jaxws.jar. Eagerly awaiting a response - Thanks! -- Brice Ruth Software Engineer, Madison WI
