It looks like you need to put the request body into to object Array like this
new Object[] { requestList }

On Mon Nov 28 18:39:49 2011, cexbrayat wrote:
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.




--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
        http://jnn.javaeye.com (Chinese)
Twitter: willemjiang Weibo: willemjiang

Reply via email to