camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jeyaseelan78 <>
Subject How to invoke CXF webservice from processor bean
Date Fri, 20 Jul 2012 01:34:22 GMT
I have processor bean using which i would like to invoke an external
webservice. I need to pass the operation name as well as parameters. If I
pass the parameter in header then its ignored and if i send it via uri then
I am getting error as invalid parameter name.

public void process(Exchange exchange) throws Exception {
		List<String> params = new ArrayList<String>();
		exchange.getIn().setHeader(CxfConstants.OPERATION_NAME, "processClient");
		String reply =
		System.out.println("Reply ---> : "+reply);
		}catch(Exception ex){

If I use the above code then the operation name is ignored and camel calls
only the first operation in the webservice.
If I use 
String reply =
then the parameter operationName is not identified and I get an exception.
can you please tell me how should I be able to use the operation name and
parameters using processor bean.

Thanks a lot.

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message