Hi Till,

I�m not sure if my answer helps you.
Have you looked at the attachment sample which is included in axis?
It constructs an "Echo" service which returns your input data. AFAK, the
input is an attachment, so the output (return) should also be an attachment.

Hope this helps
Stefan

> -----Urspr�ngliche Nachricht-----
> Von: W�rner Till [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 26. M�rz 2002 16:22
> An: [EMAIL PROTECTED]
> Betreff: AW: RPC + Attachments
>
>
> Thank you.
>
> Now that I looked at the examples, particularly at the RPC
> example, I have following question:
>
> In the examples, the client sends attachment(s) to the server. It
> adds them in the invoke(...) method and the server has access to
> them. But I want to _return_ a message with attachments actually.
> I cannot find any example that deals with such a return message,
> nor can I find any hints in the api docs. Can someone point me in
> the right direction? If I have a RPC service, do I just have to
> return something of type DataHandler or am I totally wrong
> here??? Do I have to manipulate the message in a different way?
>
> Thank you,
> Till
>
> > -----Urspr�ngliche Nachricht-----
> > Von: Ramon Turnes [mailto:[EMAIL PROTECTED]]
> > Gesendet: Dienstag, 26. M�rz 2002 13:40
> > An: '[EMAIL PROTECTED]'
> > Betreff: RE: RPC + Attachments
> >
> >
> >
> > You can use attachments in both RPC and Messaging styles. You have
> > such example in the Web Services Toolkit (WSTK) which you can
> > download from IBM (they use Axis by the way).
> >
> > Ram�n.
> >
> > > -----Original Message-----
> > > From: W�rner Till [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, March 26, 2002 1:19 PM
> > > To: Axis User List (E-Mail)
> > > Subject: RPC + Attachments
> > >
> > >
> > > Hello everybody!
> > >
> > > Can anyone tell me if it is possible to use Axis RPC style
> > > messaging with attachments?
> > > I want to write a handler that attaches a file to a message,
> > > just before it is send back to the client, but all I have
> > > there is an object of type Message and I don't know how to
> > > handle attachments with this object.
> > > Is there a interop problem if I would do something like that?
> > >
> > > It would be very nice if someone can give me an example or
> > > the steps necessary to accomplish above?
> > >
> > > Thanks,
> > > Till
> > >
> > > --
> > > T-Systems GEI GmbH
> > >
> > > Hausanschrift: Eichhornstra�e 3, D-10785 Berlin
> > > Postanschrift: D-10875 Berlin
> > > Telefon: +49 (30) 2554 3254
> > > E-Mail: [EMAIL PROTECTED]
> > >
> >
>

Reply via email to