Camel
  1. Camel
  2. CAMEL-3796

CxfRsProducer should support invoking methods with no parameters

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0
    • Component/s: camel-cxf
    • Labels:
      None

      Description

      Current CxfRsProducer will try to locate the method invocation for calling the proxy client by using the reflection API.
      It can't handle the no parameters rightly as the message body could be null, and the user needs to apply custom converter to work around this issue.

        Activity

        Hide
        Willem Jiang added a comment -

        Here is some discussion in Fuse Forums about it.
        http://fusesource.com/forums/thread.jspa?messageID=9722

        Show
        Willem Jiang added a comment - Here is some discussion in Fuse Forums about it. http://fusesource.com/forums/thread.jspa?messageID=9722
        Hide
        Willem Jiang added a comment -

        Hi Ben,

        If you revert my change in CxfRsProducer, you will see the old camel cxfrs producer didn't support to resolve the method with a no parameters.

        Willem

        Show
        Willem Jiang added a comment - Hi Ben, If you revert my change in CxfRsProducer, you will see the old camel cxfrs producer didn't support to resolve the method with a no parameters. Willem
        Hide
        Ben O'Day added a comment -

        Willem, can you provide a simple test case for this scenario. I see the CxfRsProducerTest.testGetConstumersWithClientProxyAPI() test uses a NULL body and is able to resolve the method "getCustomers()" correctly...

        Show
        Ben O'Day added a comment - Willem, can you provide a simple test case for this scenario. I see the CxfRsProducerTest.testGetConstumersWithClientProxyAPI() test uses a NULL body and is able to resolve the method "getCustomers()" correctly...

          People

          • Assignee:
            Willem Jiang
            Reporter:
            Willem Jiang
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development