One of my routes is sending a message to an existing SOAP web service,
declared in java as

@WebResult
@WebMethod(operationName = GET_INFO_PRODUITS)
Infos getInfoProduits(@WebParam String code, *@WebParam List<Request>
requests*);

When i'm trying to send a list of requests, the output message is :

<soap:Body><ns2:RECNETWS>
<code>1</code>
<request><codeArticle>BBBB</codeArticle><quantite>1.0</quantite></request>
<request><codeArticle>BBBB</codeArticle><quantite>1.0</quantite></request>
</ns2:RECNETWS></soap:Body>

And it fails because the webservice is expecting
<soap:Body><ns2:RECNETWS>
<code>1</code>
*<requests>*
<request><codeArticle>BBBB</codeArticle><quantite>1.0</quantite></request>
<request><codeArticle>BBBB</codeArticle><quantite>1.0</quantite></request>
*</requests>*
</ns2:RECNETWS></soap:Body>

*How can I add this wrapper ?*


--
View this message in context: 
http://camel.465427.n5.nabble.com/CXF-lists-as-arguments-tp5028440p5028440.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to