JAX-WS Header Content-Type and Charset issue
we use a third-party screen-scraping tool to retrieve information form main-frame screens and send data via web services .
By default, JAX-WS generates the header as follows
POST /q2372336/addnumbers HTTP/1.1
Accept: text/xml, multipart/related, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
But, the screen-scraping tool we use throws an exception saying invalid content at
I used SOAP-UI tool, and tried changing the request-headers to different values and finally I found if I change the Content-Type and charset to the following
Content-type: text/xml charset="utf-8" (removed semi-colon ";")
the tool returned response with no issues.
So, is there a way in JAX-WS to manipulate the headers (remove semi-colon and add space instead in between the content-type and charset defined above) before making a request?