camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: Handler is not getting called when calling external webservice using camel-cxf
Date Tue, 15 May 2012 01:15:40 GMT
Hi,

I'm not sure what your Handler look like , but if you are using the 
PAYLOAD data format, you handle may not be invoked.
As camel-cxf component modify the interceptor chain to skip phases 
which may invoke your handle.

On Mon May 14 21:42:06 2012, bhushand wrote:
> I have done the configurations as below,
>
> <beans xmlns="http://www.springframework.org/schema/beans"
> 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xmlns:jaxws="http://cxf.apache.org/jaxws"
> 	   xmlns:cxf="http://camel.apache.org/schema/cxf"
> 	xsi:schemaLocation="
>              http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
>              http://cxf.apache.org/jaxws
> http://cxf.apache.org/schemas/jaxws.xsd
>              http://camel.apache.org/schema/cxf
> http://camel.apache.org/schema/cxf/camel-cxf.xsd">
>
> 	<import resource="classpath:META-INF/cxf/cxf.xml" />
> 	<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
> 	<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
>
> <bean id="beanLoggingHandler" class="com.test.LoggingHandler" />
>
> 	<cxf:cxfEndpoint id="printPersonNameServiceEndpoint"
> address="http://vmvpc017097.pcg.ad.msdwis.com:9080/SampleWebService/PrintPersonNameService"
>       		wsdlURL="com/test/service/echo/PrintPersonNameService.wsdl"
>       		endpointName="s:PrintPersonNamePort"
>       		serviceName="s:PrintPersonNameService"
>       	xmlns:s="http://echo.service.test.com/">
>
> 		<cxf:handlers>
> 		<ref bean="beanLoggingHandler" />
> 		</cxf:handlers>
>
>       		<cxf:properties>
>         			<entry key="dataFormat" value="PAYLOAD"/>
>         			<entry key="setDefaultBus" value="true"/>
>       		</cxf:properties>
>     	</cxf:cxfEndpoint>
> ....
> ....
> </beans>
>
> This bean is called from the camel route as below,
> 		<camel:route>
>                                    <camel:from
> uri="direct:startPrintPerson"></camel:from>
> 	       	<to uri="cxf:bean:printPersonNameServiceEndpoint" />
> 		</camel:route>
>
>
> But with this, the service defined under "printPersonNameServiceEndpoint" is
> being called, but the handler configured is not getting called.
>
> I am using CXF 2.4.7, Camel 2.8.5, Camel-CXF 2.8.5, Spring 3.0.7
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Handler-is-not-getting-called-when-calling-external-webservice-using-camel-cxf-tp5709035.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



--
Willem
----------------------------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang


Mime
View raw message