jbossws sends attachments with a content transfer encoding of binary even if the client code has set a specific value.
The same code checks for existing values for content type and content id.
This all happens in org.jboss.ws.soap.attachment.MultipartRelatedEncoder.java
Is there a reason not to allow the encoding to be specified?