Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-3277

Unexpected bytes are serialized in MTOM attachment when the mime type is text/xml

XMLWordPrintable

      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)

            rhn-engineering-ema Jim Ma
            rhn-engineering-ema Jim Ma
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: