You need to add multiParameterArray=true
option to the endpoint to the bean [1] URI.
<to uri="bean:TestWS?method=doSomething&multiParameterArray=true" />
Then your processor should set body as an array of parameters you want to pass to the service:
exchange.getIn().setBody(new Object[]{"param1", "param2"});