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

multipart/related messages exchanged for @MTOM annotated endpoint even if no attachment is included

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: jbossws-cxf-4.0.2, jbossws-native-4.0.2
    • Fix Version/s: None
    • Component/s: jbossws-cxf, jbossws-native
    • Labels:
      None
    • Environment:

      Jboss AS 7.1.1Final

      Description

      On JBoss AS 7.1.1, with the following service implementation:

      @WebService(...)
      @javax.xml.ws.BindingType (value=javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_MTOM_BINDING)
      public class SEIImpl {
      ...
      public DataHandler getBin() {...} /* maps to a type="xs:base64Binary" in wsdl */
      public List<String> getString(){...} /* maps to sequence of String in wsdl */
      ...
      }
      

      With the default jbossws-cxf, the responses are:

      • for getString() method
        Content-Type: multipart/related; type="application/xop+xml"; ...
      • for getBin() method
        Content-Type: multipart/related; type="application/xop+xml"; ...

      -> both responses are MTOM/XOP modified ! The getString() response should not.

      With jbossws-native (after the jbossws stack switching) , the responses are the expected ones:

      • for getString() method
        Content-Type: text/xml;charset=UTF-8 <env:Envelope .... text content ..../env:Envelope>
      • for getBin() method
        Content-Type: multipart/related; type="application/xop+xml"; ...

      Best regards,

      Note: same behaviour with @javax.xml.ws.soap.MTOM or SOAP11HTTP_MTOM_BINDING

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                asoldano Alessio Soldano
                Reporter:
                jbossalecuser A l e c C R E S T A N
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: