FAQ
Hi,

The details in your email are rather sketchy. However based on the error, it
seems like your payload sent to the webservice does not match up in terms of
input/output parameters on the producer and consumer endpoints.

In addition, in order to receive a response the web service method invoked
has to be an InOut (i.e. able to send back a response). Again because of
lack of detail, this cannot be ascertained.

Cheers,

Ashwin...

-----
---------------------------------------------------------
Ashwin Karpe
Apache Camel Committer & Sr Principal Consultant
FUSESource (a Progress Software Corporation subsidiary)
http://fusesource.com

Blog: http://opensourceknowledge.blogspot.com
---------------------------------------------------------
--
View this message in context: http://camel.465427.n5.nabble.com/response-from-the-exposed-cxfendpoint-is-null-tp3713862p3719872.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Search Discussions

  • Willem.Jiang at Mar 16, 2011 at 7:32 am
    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.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupusers @
categoriescamel
postedMar 15, '11 at 8:34p
activeMar 16, '11 at 7:32a
posts2
users2
websitecamel.apache.org

2 users in discussion

Willem.Jiang: 1 post Ashwin Karpe: 1 post

People

Translate

site design / logo © 2022 Grokbase