Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Attachments / MTOM

  1. #11
    Join Date
    Jun 2007
    Location
    Szczecin, Poland
    Posts
    16

    Default

    Quote Originally Posted by Arjen Poutsma View Post
    I've created that sample. It's called 'mtom' (quite a fitting name ), and has a JAX-WS client, so it's pretty interoperable.
    Are you sure that:

    Code:
    17   	     <bean id="marshaller" class="org.springframework.oxm.jaxb.Jaxb2Marshaller">
    18 	        <property name="contextPath" value="org.springframework.ws.samples.mtom.schema"/>
    19 	    </bean>
    in /samples/mtom/src/main/webapp/WEB-INF/spring-ws-servlet.xml is correct?

    It works, but this won't create attachment (just will send base64 encoded content).

    As it is mtom example i think that mtomEnabled property should be set to true. Default value is false.

  2. #12
    Join Date
    Jul 2005
    Location
    Rotterdam, the Netherlands
    Posts
    1,562

    Default

    Oops. You are right: the mtomEnabled property should be set to false. Will be fixed in 1.0.1.
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

  3. #13
    Join Date
    Jun 2007
    Location
    Szczecin, Poland
    Posts
    16

    Default

    I think it should be set to true :-)

  4. #14
    Join Date
    Jul 2005
    Location
    Rotterdam, the Netherlands
    Posts
    1,562

    Default

    Right, set it to true. It has been a busy week!
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

  5. #15

    Default

    Quote Originally Posted by Arjen Poutsma View Post
    My focus has been on doing SAAJ MTOM support, and so far I haven't had time to investigate Axiom's MTOM stuff. So, for now MTOM on Axiom might work, but I haven't tried it yet.
    How about now ? Ive just try to add a AxiomSoapMessageFactory in spring-sample-mtom with jaxb and the attachement send from the AxiomMtomClient of the mtom-sample is received inline (and outofmemory occur if the file is to big). WIthout AxiomSoapMessageFactory, it is received as an attachment according to the SoapEnvelopeLoggingInterceptor

    In fact im looking for a better way to receive attachment without trying to dig in the messageContext & be able to use the benefits of Jaxb with heavy attachement (more than 10mo).


    Im really loking for a sample able to send & receive a file of 10 mo and more with jax-ws & spring ws. (the mtom sample is not the one) I feel desperate
    Last edited by mada; Aug 29th, 2010 at 01:06 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •