3 Replies Latest reply on Jun 28, 2006 4:54 AM by heiko.braun

    is MTOM transmission mandatory?

      Hi!

      I'm playing around with MTOM and wondering if it is actually mandatory to transmit a message using MTOM (ie if it contains corresponding xmime-tagged content)? What happens if the receiver does not support MTOM? Should the message be transmitted as it is? (ie with the base64-encoded data left in the message) Can it be transmitted that way even if the receiver does support MTOM?

      thanks for you enlightenment!

      regards,

      /Ole
      eviware.com

        • 1. Re: is MTOM transmission mandatory?
          heiko.braun

          The contract between sender and receiver is the WSDL. Our MTOM implementation optimizes binary data when it encounters xmime tagged schema elements.

          Future versions will go one step further and do it based on a size threshold.
          I.e it would be possible to either enforce or completly disable MTOM by tweaking the threshold value.

          • 2. Re: is MTOM transmission mandatory?

            Hi Heiko,

            thx for your reply.. the reason I ask is that I have tried to invoke the MTOM samples in the 1.0.1 release without actually sending the binary data with MTOM (I just left it in the request body..).. jbossws returns an error in this situation; "xop:Include not found..", from my point of view this should still work though.. (you cant be sure that the client supports MTOM..)..

            should I report this as a bug in JIRA or am I misunderstanding something?

            regards!

            /Ole
            eviware.com

            • 3. Re: is MTOM transmission mandatory?
              heiko.braun

              You could move this discussion to the design forum and we continue from there.