You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Pawel Janusz <pj...@intertele.pl> on 2007/08/28 20:13:03 UTC
SOAP Attachment question/problem
Hello,
I'm starting using CXF to use them as WebService. I cannot find anywhere
example on how to add SOAP attachment in service class.
Could anyone help me ?
Some example code will be very helpful.
--
Greetings
Paweł Janusz
Re: SOAP Attachment question/problem
Posted by Glen Mazza <gl...@verizon.net>.
SwA is rather old; Microsoft in particular never supported it like they
do MTOM. Both Metro and CXF provide MTOM samples only, but Apache
Axis2[1] might be of help for you.
Glen
[1] http://wso2.org/search/node/swa
Am Mittwoch, den 29.08.2007, 07:50 +0200 schrieb Pawel Janusz:
> Yes, this is a MTOM example, but as far as I know SOAP Attachments is
> something different.
>
>
> Willem Jiang wrote:
> > Hi,
> >
> > You can take a look of the below two documents.
> > [1] http://cwiki.apache.org/CXF20DOC/mtom.html
> > [2]http://cwiki.apache.org/CXF20DOC/mtom-attachments.html
> >
> > And you can find the simple MTOM from CXF bin distribution .
> >
> > Willem.
> >
Re: SOAP Attachment question/problem
Posted by Freeman Fang <fr...@iona.com>.
Hi Pawel,
You can refer to the system test ClientServerSwaTest to get more details
about how cxf support SWA.
http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/swa/ClientServerSwaTest.java?view=log
Cheers
Freeman
Daniel Kulp wrote:
> We do support SOAP w/ Attachements (it's required by JAX-WS spec).
> Unfortunately, I don't know a lot about it. You might want to check
> the JAX-WS spec to see what they say.
>
> For the most part, on the code side, you just use a DataHandler object
> for the parameter. A WSDL with attachments would map into that.
>
> Dan
>
> On Wednesday 29 August 2007, Pawel Janusz wrote:
>
>> Yes, this is a MTOM example, but as far as I know SOAP Attachments is
>> something different.
>>
>> Willem Jiang wrote:
>>
>>> Hi,
>>>
>>> You can take a look of the below two documents.
>>> [1] http://cwiki.apache.org/CXF20DOC/mtom.html
>>> [2]http://cwiki.apache.org/CXF20DOC/mtom-attachments.html
>>>
>>> And you can find the simple MTOM from CXF bin distribution .
>>>
>>> Willem.
>>>
>
>
>
>
Re: SOAP Attachment question/problem
Posted by Daniel Kulp <dk...@apache.org>.
We do support SOAP w/ Attachements (it's required by JAX-WS spec).
Unfortunately, I don't know a lot about it. You might want to check
the JAX-WS spec to see what they say.
For the most part, on the code side, you just use a DataHandler object
for the parameter. A WSDL with attachments would map into that.
Dan
On Wednesday 29 August 2007, Pawel Janusz wrote:
> Yes, this is a MTOM example, but as far as I know SOAP Attachments is
> something different.
>
> Willem Jiang wrote:
> > Hi,
> >
> > You can take a look of the below two documents.
> > [1] http://cwiki.apache.org/CXF20DOC/mtom.html
> > [2]http://cwiki.apache.org/CXF20DOC/mtom-attachments.html
> >
> > And you can find the simple MTOM from CXF bin distribution .
> >
> > Willem.
--
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727 C: 508-380-7194
daniel.kulp@iona.com
http://www.dankulp.com/blog
Re: SOAP Attachment question/problem
Posted by Pawel Janusz <pj...@intertele.pl>.
Yes, this is a MTOM example, but as far as I know SOAP Attachments is
something different.
Willem Jiang wrote:
> Hi,
>
> You can take a look of the below two documents.
> [1] http://cwiki.apache.org/CXF20DOC/mtom.html
> [2]http://cwiki.apache.org/CXF20DOC/mtom-attachments.html
>
> And you can find the simple MTOM from CXF bin distribution .
>
> Willem.
>
Re: SOAP Attachment question/problem
Posted by Willem Jiang <ni...@iona.com>.
Hi,
You can take a look of the below two documents.
[1] http://cwiki.apache.org/CXF20DOC/mtom.html
[2]http://cwiki.apache.org/CXF20DOC/mtom-attachments.html
And you can find the simple MTOM from CXF bin distribution .
Willem.
Pawel Janusz wrote:
> Hello,
> I'm starting using CXF to use them as WebService. I cannot find
> anywhere example on how to add SOAP attachment in service class.
> Could anyone help me ?
> Some example code will be very helpful.
>