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.
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.
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.
steps to reproduce:
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.
initially reported here https://issues.redhat.com/browse/FUSETOOLS-3369