[
https://issues.jboss.org/browse/JBWS-3277?page=com.atlassian.jira.plugin....
]
Jim Ma commented on JBWS-3277:
------------------------------
there is issue when jaxb uses xalan to marshall the xml attachment in DomRequest like:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<env:Envelope
xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
<env:Header>
<wsse:Security
xmlns:wsse='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-w...
</wsse:Security>
</env:Header> <env:Body>
<Foo
xmlns='http://www.jboss.org/jbossws'>
<Body>
the Foo body
</Body>
</Foo>
</env:Body>
</env:Envelope>
If <wsse:Security> element is removed or use jdk's xalan and serializer jars ,
this works and jaxb does not generate unexpected bytes.
Unexpected bytes are serialized in MTOM attachment when the mime type
is text/xml
---------------------------------------------------------------------------------
Key: JBWS-3277
URL:
https://issues.jboss.org/browse/JBWS-3277
Project: JBoss Web Services
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: jbossws-native
Affects Versions: jbossws-native-3.4.1
Reporter: Jim Ma
Assignee: Jim Ma
Fix For: jbossws-native-4.0
Send the DOMRequest with text/xml mime type content,
public class MTOMRequest
{
private String id;
@XmlMimeType("text/xml")
protected Source content;
public Source getContent() {
return content;
}
Server throws TransformerException :
1:32:46,033 ERROR [STDERR] javax.xml.transform.TransformerException:
org.xml.sax.SAXParseException: Content is not allowed in
trailing section.
21:32:46,033 ERROR [STDERR] at
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:502)
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira