Hi 
Can you please elaborate on this. I am in the similar situation. How did you
set the
operation name and namespace for the next endpoint.

And do i need to create CxfProducer (a client) for the second endpoint which
will then call the
external webservice.
Here is what i am doing ...but i am sure its not right as i get this
exception of

java.lang.IllegalArgumentException: BindingOperationInfo must be specified

from("cxf:bean:releasePOEndpoint").handleFault()
                .to("log:incoming?showAll=true").process(new Processor() {
                        public void process(Exchange exchange) throws Exception 
{
                                logger.info(" cxf:bean:releasePOEndpoint 
processing exchange in camel");

                                BindingOperationInfo boi = 
(BindingOperationInfo) 
                                
exchange.getProperty(BindingOperationInfo.class.toString());
                                if (boi != null) {
                                        logger.info("boi.isUnwrapped" + 
boi.isUnwrapped());
                                }
                                if (exchange != null){
                                        Message in = exchange.getIn();
                                        
            
exchange.getIn().setHeader(CxfConstants.OPERATION_NAMESPACE,"http://zappos.com/pehz/wsdl/purchase_order_service.v1_0";);
exchange.getIn().setHeader(CxfConstants.OPERATION_NAME,
"releasePurchaseOrder");
                                        
                                        exchange.getIn().setBody(in.getBody());
                                }
                        }
                })
                .to("log:incoming?showAll=true")

        
.to("cxf:bean:PurchaseOrderLifeEndpoint?defaultOperationName=releasePurchaseOrder&dataFormat=POJO&defaultOperationNameSpace=http://zappos.com/pehz/wsdl/purchase_order_service.v1_0";).to("log:incoming?showAll=true")
                .to("mock:end");

--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-CXF-Producer-should-allow-setting-of-BindingOperationInfo-tp3258474p3580264.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to