jboss-fuse / wsdl2rest

A tool allowing quick migration from existing JAX-WS services to REST
Apache License 2.0
25 stars 22 forks source link

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

Open apupier opened 3 years ago

apupier commented 3 years ago

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:

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