metro-jax-ws icon indicating copy to clipboard operation
metro-jax-ws copied to clipboard

In SOAPMessage mime header Content-Transfer-Encoding mime header is stipped off

Open Tomas-Kraus opened this issue 2 years ago • 1 comments

Hi All,

All of my SOAP request attachments has "Content-Transfer-Encoding" mime header. In our web service, we have SOAP Message Handler. When I dump the SOAPMessage contents, "Content-Transfer-Encoding" is missing. Below is the code snippet to dump the SOAPMessage. public boolean handleMessage(SOAPMessageContext context) { SOAPMessage soapMessage = context.getMessage(); soapMessage.writeTo(System.out);

We even tried printing all the MIME headers in the attachment, but "Content- Transfer-Encoding" is not present.

I thought it was issue on the SAJJ side and opened https://saaj.dev.java.net/issues/show_bug.cgi?id=52 defect.

After running snippet provided by Kumar, I found SAJJ is able to parse this header.Hence as suggested by Kumar, I am opening issue. Can you please help us here?

PFA: Request dump to webservice: STIRequest.dump soapMessage dump: soapMessage.writeTo.dump

Platform details: JAX-WS version: JAX-WS RI 2.2 Container: apache-tomcat-5.5.28 OS: Linux msg-lnx7 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

Environment

Operating System: All Platform: All

Affected Versions

[2.2]

Source: https://github.com/javaee/metro-jax-ws/issues/855 Author: glassfishrobot

Tomas-Kraus avatar Jun 02 '22 16:06 Tomas-Kraus