I did see that example.  Part of the solution seems to be from this thread:

http://camel.465427.n5.nabble.com/How-to-config-cxf-in-project-td5000149.html

It would be helpful if you could document the need to use the service name
as the address for the cfxEndpoint component:

On Mon, Apr 16, 2012 at 10:06 AM, mikael.carlstedt 
<[hidden email]> wrote: 

> We had exactly the same problem in my team when deploying a Spring DSL
> Camel 
> route with a CXF endpoint on a Glassfish appserver. We wanted to use the 
> HTTP server in Glassfish rather than a stand-alone Jetty HTTP server. 
> Finally we figured out how to do it: apart from importing cxf-servlet.xml 
> (which was mentioned in various places) we also had to specify the 
> cxfEndpoint address as the WSDL service name instead of an HTTP address. 
> This is not mentioned anywhere in the Camel CXF documentation as far as I 
> have seen, in fact I only found out about it by looking into the source
> code 
> of JOnAS. Also please note that, in contrast to jax-ws endpoints, there 
> should be no leading '/' in the address. 

So I changed 

  <cxf:cxfEndpoint id="webserviceProxy"
                  
address="http://localhost:8082/WebServiceProxy-V1/proxywebservices";
                   endpointName="s:ServiceHandlerHttpEndpoint"
                   serviceName="s:ServiceHandler"
                   wsdlURL="ServiceHandlerProxy.wsdl"
                   xmlns:s="http://webservices.tradestonesoftware.com"/>


to this:

  <cxf:cxfEndpoint id="webserviceProxy"
                   address="/ServiceHandler"
                   endpointName="s:ServiceHandlerHttpEndpoint"
                   serviceName="s:ServiceHandler"
                   wsdlURL="ServiceHandlerProxy.wsdl"
                   xmlns:s="http://webservices.tradestonesoftware.com"/>

Now when I go to 

      http://localhost:8082/WebServiceProxy-V1/proxywebservices

I get a list of the available services.  However, when I go to

      http://localhost:8082/WebServiceProxy-V1/proxywebservices?wsdl

I still get a blank page.  I guess I will have to delve into the JOnAS  code
as well.

Carl




--
View this message in context: 
http://camel.465427.n5.nabble.com/camel-web-service-proxy-example-hosted-in-Tomcat-tp5741539p5741666.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to