Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong parameter size to invoke the service with route genrated from wsdl2rest #98

Open
apupier opened this issue Sep 28, 2020 · 0 comments

Comments

@apupier
Copy link
Member

apupier commented Sep 28, 2020

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>

steps to reproduce:

  • 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.

initially reported here https://issues.redhat.com/browse/FUSETOOLS-3369

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant