Sergey Beryozkin-5 wrote
>
> OK, you could've used this code too:
>
>
Hi,
For convenience, here is the full code snippet :
Map<String, List<String>> headers = new HashMap<String,
List<String>>();
List<String> acceptedCharset = new LinkedList<String>();
acceptedCharset.add("UTF-8");
acceptedCharset.add("ISO-8859-1");
headers.put("Accept-Charset, acceptedCharset);
client.getRequestContext().put(org.apache.cxf.message.Message.PROTOCOL_HEADERS,
headers);
client.invoke(...)
Regards,
metatech
--
View this message in context:
http://cxf.547215.n5.nabble.com/Query-Setting-a-custom-HTTP-request-header-tp3390851p5709996.html
Sent from the cxf-user mailing list archive at Nabble.com.