You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by "Johnson, Eric" <Er...@iona.com> on 2007/05/14 15:46:04 UTC
SOAP w/ Attachments
Does either of the SOAP bindings support sending binary attachments?
RE: MTOM
Posted by Christopher Moesel <Ch...@avid.com>.
I believe that it will *work* either way, but if you want to utilize
streaming attachments, then you need to use the
xmime:expectedContentTypes attribute in the WSDL.
You probably want to use the streaming capability because without it,
you're just dealing with a java byte[], which could cause memory
problems if it's a large attachment.
-Chris
-----Original Message-----
From: Johnson, Eric [mailto:Eric.Johnson@iona.com]
Sent: Wednesday, May 16, 2007 2:17 PM
To: cxf-dev@incubator.apache.org
Subject: MTOM
Dan,
I was looking at the docco and it says that you need to add the
xmime:expectedContentTypes attribute to your WSDL to make MTOM work, as
well as enabling the run time support, but the MTOM demo does not use
this and simply generates byte[].
Which is correct? Or does it matter as long as the runtime support is
turned on?
Cheers,
Eric
> -----Original Message-----
> From: Dan Diephouse [mailto:dan@envoisolutions.com]
> Sent: Tuesday, May 15, 2007 4:45 PM
> To: cxf-dev@incubator.apache.org
> Subject: Re: SOAP w/ Attachments
>
> Yes it works on all soap versions. You can enable it simply
> by setting the "mtom-enabled" property to "true" somewhere
> (i.e. on the service/endpoint/etc -
> endpoint.put("mtom-enabled", Boolean.TRUE);)
>
> - Dan
>
> On 5/15/07, Johnson, Eric <Er...@iona.com> wrote:
> >
> > Does MTOM work for both SOAP 1.1 and SOAP 1.2? Can MTOM be enabled
> > through configuring the SOAP binding rather JAX-WS?
> >
> > > -----Original Message-----
> > > From: Dan Diephouse [mailto:dan@envoisolutions.com]
> > > Sent: Monday, May 14, 2007 2:28 PM
> > > To: cxf-dev@incubator.apache.org
> > > Subject: Re: SOAP w/ Attachments
> > >
> > > On 5/14/07, Johnson, Eric <Er...@iona.com> wrote:
> > > >
> > > > Does either of the SOAP bindings support sending binary
> attachments?
> > > >
> > >
> > > We support MTOM:
> > > http://cwiki.apache.org/CXF20DOC/mtom-attachments.html
> > >
> > > There is also minimal support for SwA (according to the
> > > AttachmentsProfile), but that is basically worthless because any
> > > soap stack that does SwA AP also does MTOM:
> > >
> > > http://netzooid.com/blog/2007/01/04/the-ws-i-attachmentsprofil
> > e-is-a-sham/
> > >
> > > - Dan
> > >
> > > --
> > > Dan Diephouse
> > > Envoi Solutions
> > > http://envoisolutions.com | http://netzooid.com/blog
> > >
> >
>
>
>
> --
> Dan Diephouse
> Envoi Solutions
> http://envoisolutions.com | http://netzooid.com/blog
>
MTOM
Posted by "Johnson, Eric" <Er...@iona.com>.
Dan,
I was looking at the docco and it says that you need to add the
xmime:expectedContentTypes attribute to your WSDL to make MTOM work, as
well as enabling the run time support, but the MTOM demo does not use
this and simply generates byte[].
Which is correct? Or does it matter as long as the runtime support is
turned on?
Cheers,
Eric
> -----Original Message-----
> From: Dan Diephouse [mailto:dan@envoisolutions.com]
> Sent: Tuesday, May 15, 2007 4:45 PM
> To: cxf-dev@incubator.apache.org
> Subject: Re: SOAP w/ Attachments
>
> Yes it works on all soap versions. You can enable it simply
> by setting the "mtom-enabled" property to "true" somewhere
> (i.e. on the service/endpoint/etc -
> endpoint.put("mtom-enabled", Boolean.TRUE);)
>
> - Dan
>
> On 5/15/07, Johnson, Eric <Er...@iona.com> wrote:
> >
> > Does MTOM work for both SOAP 1.1 and SOAP 1.2? Can MTOM be enabled
> > through configuring the SOAP binding rather JAX-WS?
> >
> > > -----Original Message-----
> > > From: Dan Diephouse [mailto:dan@envoisolutions.com]
> > > Sent: Monday, May 14, 2007 2:28 PM
> > > To: cxf-dev@incubator.apache.org
> > > Subject: Re: SOAP w/ Attachments
> > >
> > > On 5/14/07, Johnson, Eric <Er...@iona.com> wrote:
> > > >
> > > > Does either of the SOAP bindings support sending binary
> attachments?
> > > >
> > >
> > > We support MTOM:
> > > http://cwiki.apache.org/CXF20DOC/mtom-attachments.html
> > >
> > > There is also minimal support for SwA (according to the
> > > AttachmentsProfile), but that is basically worthless because any
> > > soap stack that does SwA AP also does MTOM:
> > >
> > > http://netzooid.com/blog/2007/01/04/the-ws-i-attachmentsprofil
> > e-is-a-sham/
> > >
> > > - Dan
> > >
> > > --
> > > Dan Diephouse
> > > Envoi Solutions
> > > http://envoisolutions.com | http://netzooid.com/blog
> > >
> >
>
>
>
> --
> Dan Diephouse
> Envoi Solutions
> http://envoisolutions.com | http://netzooid.com/blog
>
RE: SOAP w/ Attachments
Posted by "Johnson, Eric" <Er...@iona.com>.
Cool. Is there a SOAP binding configuration touch point for the Spring
configuration file?
Will the XML binding also support this?
> -----Original Message-----
> From: Dan Diephouse [mailto:dan@envoisolutions.com]
> Sent: Tuesday, May 15, 2007 4:45 PM
> To: cxf-dev@incubator.apache.org
> Subject: Re: SOAP w/ Attachments
>
> Yes it works on all soap versions. You can enable it simply
> by setting the "mtom-enabled" property to "true" somewhere
> (i.e. on the service/endpoint/etc -
> endpoint.put("mtom-enabled", Boolean.TRUE);)
>
> - Dan
>
> On 5/15/07, Johnson, Eric <Er...@iona.com> wrote:
> >
> > Does MTOM work for both SOAP 1.1 and SOAP 1.2? Can MTOM be enabled
> > through configuring the SOAP binding rather JAX-WS?
> >
> > > -----Original Message-----
> > > From: Dan Diephouse [mailto:dan@envoisolutions.com]
> > > Sent: Monday, May 14, 2007 2:28 PM
> > > To: cxf-dev@incubator.apache.org
> > > Subject: Re: SOAP w/ Attachments
> > >
> > > On 5/14/07, Johnson, Eric <Er...@iona.com> wrote:
> > > >
> > > > Does either of the SOAP bindings support sending binary
> attachments?
> > > >
> > >
> > > We support MTOM:
> > > http://cwiki.apache.org/CXF20DOC/mtom-attachments.html
> > >
> > > There is also minimal support for SwA (according to the
> > > AttachmentsProfile), but that is basically worthless because any
> > > soap stack that does SwA AP also does MTOM:
> > >
> > > http://netzooid.com/blog/2007/01/04/the-ws-i-attachmentsprofil
> > e-is-a-sham/
> > >
> > > - Dan
> > >
> > > --
> > > Dan Diephouse
> > > Envoi Solutions
> > > http://envoisolutions.com | http://netzooid.com/blog
> > >
> >
>
>
>
> --
> Dan Diephouse
> Envoi Solutions
> http://envoisolutions.com | http://netzooid.com/blog
>
Re: SOAP w/ Attachments
Posted by Dan Diephouse <da...@envoisolutions.com>.
Yes it works on all soap versions. You can enable it simply by setting the
"mtom-enabled" property to "true" somewhere (i.e. on the
service/endpoint/etc - endpoint.put("mtom-enabled", Boolean.TRUE);)
- Dan
On 5/15/07, Johnson, Eric <Er...@iona.com> wrote:
>
> Does MTOM work for both SOAP 1.1 and SOAP 1.2? Can MTOM be enabled
> through configuring the SOAP binding rather JAX-WS?
>
> > -----Original Message-----
> > From: Dan Diephouse [mailto:dan@envoisolutions.com]
> > Sent: Monday, May 14, 2007 2:28 PM
> > To: cxf-dev@incubator.apache.org
> > Subject: Re: SOAP w/ Attachments
> >
> > On 5/14/07, Johnson, Eric <Er...@iona.com> wrote:
> > >
> > > Does either of the SOAP bindings support sending binary attachments?
> > >
> >
> > We support MTOM:
> > http://cwiki.apache.org/CXF20DOC/mtom-attachments.html
> >
> > There is also minimal support for SwA (according to the
> > AttachmentsProfile), but that is basically worthless because
> > any soap stack that does SwA AP also does MTOM:
> >
> > http://netzooid.com/blog/2007/01/04/the-ws-i-attachmentsprofil
> e-is-a-sham/
> >
> > - Dan
> >
> > --
> > Dan Diephouse
> > Envoi Solutions
> > http://envoisolutions.com | http://netzooid.com/blog
> >
>
--
Dan Diephouse
Envoi Solutions
http://envoisolutions.com | http://netzooid.com/blog
RE: SOAP w/ Attachments
Posted by "Johnson, Eric" <Er...@iona.com>.
Does MTOM work for both SOAP 1.1 and SOAP 1.2? Can MTOM be enabled
through configuring the SOAP binding rather JAX-WS?
> -----Original Message-----
> From: Dan Diephouse [mailto:dan@envoisolutions.com]
> Sent: Monday, May 14, 2007 2:28 PM
> To: cxf-dev@incubator.apache.org
> Subject: Re: SOAP w/ Attachments
>
> On 5/14/07, Johnson, Eric <Er...@iona.com> wrote:
> >
> > Does either of the SOAP bindings support sending binary attachments?
> >
>
> We support MTOM:
> http://cwiki.apache.org/CXF20DOC/mtom-attachments.html
>
> There is also minimal support for SwA (according to the
> AttachmentsProfile), but that is basically worthless because
> any soap stack that does SwA AP also does MTOM:
>
> http://netzooid.com/blog/2007/01/04/the-ws-i-attachmentsprofil
e-is-a-sham/
>
> - Dan
>
> --
> Dan Diephouse
> Envoi Solutions
> http://envoisolutions.com | http://netzooid.com/blog
>
Re: SOAP w/ Attachments
Posted by Dan Diephouse <da...@envoisolutions.com>.
On 5/14/07, Johnson, Eric <Er...@iona.com> wrote:
>
> Does either of the SOAP bindings support sending binary attachments?
>
We support MTOM: http://cwiki.apache.org/CXF20DOC/mtom-attachments.html
There is also minimal support for SwA (according to the AttachmentsProfile),
but that is basically worthless because any soap stack that does SwA AP also
does MTOM:
http://netzooid.com/blog/2007/01/04/the-ws-i-attachmentsprofile-is-a-sham/
- Dan
--
Dan Diephouse
Envoi Solutions
http://envoisolutions.com | http://netzooid.com/blog