Hi,

But I explicitly set the Content-Type header:

ClientResponse response = new RestClient().resource(serviceUrl)
                        .header("Content-Type", "multipart/form-data;
boundary=" + boundary).post(requestEntity);

... and it does not work.

Mihael


2016-05-24 13:47 GMT+02:00 Darin Amos <[email protected]>:

> Because you have the @Consumes annotation, you are saying you will only
> accept requests with multipart content-type header. You must include the
> Content-Type header in your request. This allows you to use different
> methods to service different content-types with the same path.
>
> Cheers
>
>
> On May 24, 2016, at 3:54 AM, Mihael Schmidt <[email protected]> wrote:
>
> MULTIPART_FORM_DATA
>
>
>


-- 
Mihael Schmidt
Software und System-Entwicklung

-- 

Schulz Gebäudeservice GmbH & Co. KG
Dr.-Max-Ilgner-Straße 17
32339 Espelkamp
Persönlich haftende Gesellschafterin:
Gebäudereinigung Joachim Schulz
Verwaltungsgesellschaft mbH
Telefon: +49 5772 9100 0
Telefax: +49 5772 9100 11
Email: [email protected]
Internet: www.sgbs.de
Geschäftsführer: Joachim und Dirk Schulz, Norbert Kosica
Handelsregister Bad Oeynhausen: HRA 5902, HRB 8591
UST-Id-Nr.: DE 125752702

Reply via email to