[
https://issues.apache.org/jira/browse/AXIS2-4826?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rich Scheuerle resolved AXIS2-4826.
-----------------------------------
Resolution: Fixed
> JAXWS: BOM characters are embedded in the middle of a message
> -------------------------------------------------------------
>
> Key: AXIS2-4826
> URL: https://issues.apache.org/jira/browse/AXIS2-4826
> Project: Axis2
> Issue Type: Bug
> Components: jaxws
> Reporter: Rich Scheuerle
> Assignee: Rich Scheuerle
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> When the JAX-WS runtime sends a SOAP message using the "UTF-16" character
> encoding, a byte order mark (BOM) precedes
> the xml portion of the message.
> In some cases, a second, stray BOM may appear in the message within the Body
> contents. The BOM characters are:
> 0xFF 0xFE or
> 0xFE 0xFF
> These extra characters are usually ignored by the receiver of the message;
> however, in some cases, the receiver may fail with an error or silently
> continue with the bad data.
> The extra BOM characters are located after the Body start tag or are present
> within the contents of the Body's children.
> --------------------
> Proposed Solution:
> I have written some code in the JAX-WS marshaller to detect this situation.
> A ouput stream filter is inserted to remove the BOM as it is written.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]