So, is there *any* way to use restful support with something that's deployed as a .war, without using the embedded Jetty? i.e. what can I do as a work around?
On 5/21/07, Willem Jiang <[EMAIL PROTECTED]> wrote:
Hi Brice, I just wrote a CXFServlet test to verified you restful_http_binding issue. Current CXF-Servlet doesn't support the restful_http_binding, even you can create a service with JaxWsServerFactoryBean. CXFServlet can't redirect the http request to the right destination. I also looked the code to deal with jaxws:endpoint, it just work for soap binding. So here are two issues of CXF and I filled them in the JIRA. 1. CXFServlet doesn't support http-binding [1] 2. CXF's spring jaxws syntax doesn't support http-binding [2] [1]http://issues.apache.org/jira/browse/CXF-664 [2]http://issues.apache.org/jira/browse/CXF-663 Please have a watch of them. Thanks, Willem. Willem Jiang wrote: > Hi, > > Just quick answer for the jsr181 jar , it is > geronimo-ws-metadata_2.0_spec-1.1-M1.jar in CXF. > > Willem. > > Brice Ruth wrote: >> 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
