camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhushand <bhushan_bde...@yahoo.co.in>
Subject Handler is not getting called when calling external webservice using camel-cxf
Date Mon, 14 May 2012 13:42:06 GMT
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.

Mime
View raw message