Hi,
I don't know why you call the below code in your processor.
msgList[1].toString()
If your request message only one parameter, the msgList should have only one
element.
If you want to get the result, you should check it in the processor after
.to("cxf:bean");
Willem
TJ wrote:
>
> when i send a request to the route I am not able to see any response from
> the webservice.
> Is there i am doing something wrong here, is there a different way of
> doing it.
>
> msgList[1].toString() throws a array index out of bounds excetion.
>
> 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");
> Message in = exchange.getIn();
> Object[] msgList = exchange.getIn().getBody(Object[].class);
> ReleasePurchaseOrderRequestType poRequest
> (ReleasePurchaseOrderRequestType)msgList[0];
> ReleasePurchaseOrderRequestType poRequest =
> (ReleasePurchaseOrderRequestType)msgList[0];
> logger.info("#####Exchange ouput"+msgList[1].toString());
>
> exchange.getOut().setHeader(CxfConstants.OPERATION_NAMESPACE,"http://company.com/pehz/wsdl/purchase_order_service.v1_0");
> exchange.getOut().setHeader(CxfConstants.OPERATION_NAME,
> "releasePurchaseOrder");
>
> exchange.getOut().setBody(in.getBody());
> }
> })
> .to("cxf:bean");
>
--
View this message in context:
http://camel.465427.n5.nabble.com/response-from-the-exposed-cxfendpoint-is-null-tp3713862p3766359.html
Sent from the Camel - Users mailing list archive at Nabble.com.