You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Rich Catlett <ri...@more.net> on 2001/08/21 20:36:33 UTC
sending attachments back to the client
I am trying to send attachments back to the client from a soap messging
service. Currently I am sending back an XML document as a String, and I
do this with the responsecontext.setRootPart(XMLdocument, text/xml); It
was my guess that to send attachments I would just do a
responsecontext.addBodyPart(bodypart); this however is not working. Is
anybody else sending attachments back to the client, if so how? Can
anbody help?
Rich Catlett
Re: sending attachments back to the client
Posted by Stephan Wiesner <wi...@werum.de>.
If I want to send attachements I just Base64 encode them, send them as a
String and decode them on the other side. Stable and plain simple ...
Stephan
----- Original Message -----
From: "Rich Catlett" <ri...@more.net>
To: <so...@xml.apache.org>
Sent: Tuesday, August 21, 2001 9:54 PM
Subject: sending attachments back to the client
> I'm sending this again because I thought I should give a little more
> info. On the client side I attempted to get the responseContext from
> the message as I figured this would be the way to retreive attachments,
> this object was always null. So I tried just printing the contents of
> the response, and I still only got back what I set as the root part of
> the responsecontext of the service.
>
> Thanks for any help.
> Rich Catlett
>
> > I am trying to send attachments back to the client from a soap
> > messging service. Currently I am sending back an XML document as a
> > String, and I do this with the
> > responsecontext.setRootPart(XMLdocument, text/xml); It was my guess
> > that to send attachments I would just do a
> > responsecontext.addBodyPart(bodypart); this however is not working.
> > Is anybody else sending attachments back to the client, if so how?
> > Can anbody help?
> >
> > Rich Catlett
> >
>
>
Re: sending attachments back to the client
Posted by Stephan Wiesner <wi...@werum.de>.
If I want to send attachements I just Base64 encode them, send them as a
String and decode them on the other side. Stable and plain simple ...
Stephan
----- Original Message -----
From: "Rich Catlett" <ri...@more.net>
To: <so...@xml.apache.org>
Sent: Tuesday, August 21, 2001 9:54 PM
Subject: sending attachments back to the client
> I'm sending this again because I thought I should give a little more
> info. On the client side I attempted to get the responseContext from
> the message as I figured this would be the way to retreive attachments,
> this object was always null. So I tried just printing the contents of
> the response, and I still only got back what I set as the root part of
> the responsecontext of the service.
>
> Thanks for any help.
> Rich Catlett
>
> > I am trying to send attachments back to the client from a soap
> > messging service. Currently I am sending back an XML document as a
> > String, and I do this with the
> > responsecontext.setRootPart(XMLdocument, text/xml); It was my guess
> > that to send attachments I would just do a
> > responsecontext.addBodyPart(bodypart); this however is not working.
> > Is anybody else sending attachments back to the client, if so how?
> > Can anbody help?
> >
> > Rich Catlett
> >
>
>
sending attachments back to the client
Posted by Rich Catlett <ri...@more.net>.
I'm sending this again because I thought I should give a little more
info. On the client side I attempted to get the responseContext from
the message as I figured this would be the way to retreive attachments,
this object was always null. So I tried just printing the contents of
the response, and I still only got back what I set as the root part of
the responsecontext of the service.
Thanks for any help.
Rich Catlett
> I am trying to send attachments back to the client from a soap
> messging service. Currently I am sending back an XML document as a
> String, and I do this with the
> responsecontext.setRootPart(XMLdocument, text/xml); It was my guess
> that to send attachments I would just do a
> responsecontext.addBodyPart(bodypart); this however is not working.
> Is anybody else sending attachments back to the client, if so how?
> Can anbody help?
>
> Rich Catlett
>
sending attachments back to the client
Posted by Rich Catlett <ri...@more.net>.
I'm sending this again because I thought I should give a little more
info. On the client side I attempted to get the responseContext from
the message as I figured this would be the way to retreive attachments,
this object was always null. So I tried just printing the contents of
the response, and I still only got back what I set as the root part of
the responsecontext of the service.
Thanks for any help.
Rich Catlett
> I am trying to send attachments back to the client from a soap
> messging service. Currently I am sending back an XML document as a
> String, and I do this with the
> responsecontext.setRootPart(XMLdocument, text/xml); It was my guess
> that to send attachments I would just do a
> responsecontext.addBodyPart(bodypart); this however is not working.
> Is anybody else sending attachments back to the client, if so how?
> Can anbody help?
>
> Rich Catlett
>