jax-ws change Content-type to Content-Type because server is hyper sensitive
问题 I have to connect to a poorly implemented server that only understands Content-Type (capital-T) and not Content-type . How can I ask my JAX-WS client to send Content-Type ? I've tried: Map<String, List<String>> headers = (Map<String, List<String>>) ((BindingProvider)port).getRequestContext().get(MessageContext.HTTP_REQUEST_HEADERS); But headers is null . What am I doing wrong? 回答1: I have to connect to a poorly implemented server that only understands Content-Type(capital-T) and not Content