The proxyEndpoint means you want some client to access this proxy, so you can 
chose the address that you want to expose.
But you need to access the real back end service (the Axis2 service), as 
camel-cxf endpoint turn the request into method call with parameters by 
default, you need to use camel-cxf endpoint to send the request this time.


--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) 
(English)
          http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem





On Wednesday, November 13, 2013 at 1:51 AM, madusanka wrote:

> Hi,
>  
> Thanks a lot!!!. I don't want to run Axis2 service in Camel. I have an
> existing web service someplace and I want to create a proxy in front of it.
> Following is my proxy configuration. For "proxyEndpoint" can I use any URL
> of my choice or is there a specific one?
>  
>  
> <cxf:cxfEndpoint id="proxyEndpoint"
> address="http://localhost:8080/HelloService";
> wsdlURL="../../wsdl/HelloService.wsdl"
> endpointName="tns:HelloServicePort"
> serviceName="tns:HelloService"  
> xmlns:tns="http://tempuri.org/HelloService"; />
>  
>  
> <camelContext xmlns="http://camel.apache.org/schema/spring";>  
>  
> <endpoint id="HelloServiceEndpoint"
> uri="http://localhost:8080/axis2/services/HelloService"/>
> <route>  
> <from uri="cxf:bean:proxyEndpoint" />
> <to ref="HelloServiceEndpoint"/>
> </route>  
> </camelContext>
>  
>  
>  
>  
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/How-to-expose-a-remote-Web-Service-tp5743119p5743125.html
> Sent from the Camel - Users mailing list archive at Nabble.com 
> (http://Nabble.com).



Reply via email to