Hi,
You are using the Message data format which means there is no
interceptor will take a look at the under layer message. You can not do
any routing which is based on the operation name.
I suggest you use POJO data format and cxf producer to send the request.
BTW, it is important for you to take a look at the camel-cxf wiki page[1]
[1]http://camel.apache.org/cxf.html
On 8/5/11 12:06 PM, chandraprabha wrote:
Thanks
I am able to call external webservice.
Now i want to call different webservice based on different operation .I have
modified the route as below ..but not working :(
<camelContext xmlns="http://camel.apache.org/schema/spring">
<route>
<from uri="cxf:bean:reportIncident?dataFormat=Message"
/>
<choice>
<when>
<simple>${in.header.operationName}=="GetSupportTopics"</simple>
<to
uri="http://stage-esb01.myCom.net:8092/Service/CommunicationWs/?throwExceptionOnFailure=false"
/>
</when>
<otherwise>
<to
uri="http://stage-esb01.myCom.net:8092/Service/MemberWs/?throwExceptionOnFailure=false"
/>
</otherwise>
</choice>
<to uri="bean:enrichBean" />
<to uri="log:input" />
<to uri="log:output" />
</route>
</camelContext>
--
View this message in context:
http://camel.465427.n5.nabble.com/camel-example-cxf-proxy-need-help-tp4667517p4668643.html
Sent from the Camel - Users mailing list archive at Nabble.com.
--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang