What version of CXF are you using? With CXF 3.2.5 I can do:

WebClient client = WebClient.create(address, busFile.toString());
        client = client.type("application/xml");

        client.query("id", "1");
        client.query("id", "2");
        Response response = client.get();

and the URL is:

Address: http://localhost:9001/doubleit/services?id=1&id=2

Colm.

On Tue, Jul 17, 2018 at 9:39 AM, Matthew Broadhead <
matthew.broadh...@nbmlaw.co.uk.invalid> wrote:

> cxf-core-3.1.10.jar (TomEE 7.0.3)
>
> I am trying to access an endpoint which says it wants multiple id number
> parameters like.  the documentation says this is allowed in http?
> https://example.com/test?id=123&id=456&id=789
>
> i tried the following
> WebClient webClient = WebClient.create(baseAddress);
> List<Integer> ids = selectList();
> // test 1
> for (Integer id : ids) {
>         webClient.query("id", id);
> }
> // test 2
> webClient.query("id", ids);
> // test 3
> webClient.query("id", ids.toArray(new Integer[ids.size()]));
>



-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com

Reply via email to