Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-4561

a getter signature of a return type class affects whether the response would be MTOM(XOP Include) or inline string

    XMLWordPrintable

    Details

    • Affects:
      Release Notes

      Description

      A getter signature of a return type class affects whether the response would be MTOM(XOP Include) or inline string in case that MTOM is enabled.

      The return type class has a DataHandler field like:

      @XmlRootElement
      @XmlType(name = "imageResult")
      public class ImageResult implements Serializable {

      ...
      private DataHandler tiff;

      @XmlMimeType("application/octet-stream")
      @XmlElement(name = "tiff")
      public DataHandler getTiff()

      { return tiff;}

      public void setTiff(DataHandler tiff)

      {this.tiff = tiff;}

      }

      If getTiff() is modified to getSometing(), then the response would be inline string.

      Because...
      On deploy time, ParameterMetaData is marked as XOP=true.
      It depends on org.jboss.ws.extensions.xop.jaxws.ReflectiveAttachmentRefScanner.scanBean() and scanGetterAnnotation() [1].
      So if the getter's signature doesn't conform javabean getter constraint "getTiff", ReflectiveAttachmentRefScanner will miss to mark it XOP=true.

      This constraint should be documented.

      [1] http://anonsvn.jboss.org/repos/jbossws/stack/native/tags/jbossws-native-3.1.2.SP3_CP01/modules/core/src/main/java/org/jboss/ws/extensions/xop/jaxws/ReflectiveAttachmentRefScanner.java

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                rsvoboda Rostislav Svoboda
                Reporter:
                tkobayashi Toshiya Kobayashi
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: