Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-14876

Camel REST DSL from wsdl project throws: java.lang.IllegalArgument Exception: Get the wrong parameter size to invoke the out service

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • fuse-7.7-GA
    • Camel, CXF, Tooling
    • None
    • % %
    • Hide
      1. Use this project to create the SOAP web service.
      2. Now open the codeready studio and create a new "Camel REST DLS from WSDL" project and use the WSDL generated from the previous project.  A pre-created project is available here.
      3. Now run the second project and send a request to the rest endpoint. Here, you'll notice that it throws the following error: 
        java.lang.IllegalArgumentException: Get the wrong parameter size to invoke the out service, Expect size 3, Parameter size 1. Please check if the message body matches the CXFEndpoint POJO Dataformat request.
        
      Show
      Use this project to create the SOAP web service. Now open the codeready studio and create a new "Camel REST DLS from WSDL" project and use the WSDL generated from the previous project.  A pre-created project is available here . Now run the second project and send a request to the rest endpoint. Here, you'll notice that it throws the following error:  java.lang.IllegalArgumentException: Get the wrong parameter size to invoke the out service, Expect size 3, Parameter size 1. Please check if the message body matches the CXFEndpoint POJO Dataformat request.

    Description

      When the REST DSL is generated from a wsdl, it creates the route with a wrapper object as payload type but the cxf expects individual elements as the input and throws the following exception:

      java.lang.IllegalArgumentException: Get the wrong parameter size to invoke the out service, Expect size 3, Parameter size 1. Please check if the message body matches the CXFEndpoint POJO Dataformat request.
      
      

       

       <restConfiguration bindingMode="json" component="jetty"
                  host="hostname" port="8080"/>
              <rest id="id-a64e53e8-eae9-404c-b07e-d0a07b4f68fc" path="/test">
                  <get id="id-7c1e452e-de34-4bad-907a-94cbafc0d6cf"
                      outType="org.example.TestRequestResponse"
                      type="org.example.TestRequest" uri="/testrequest/{arg0}">
                      <to uri="direct:TestRequest"/>
                  </get>
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rhn-support-adongre Avinash Dongre
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: