You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Sharmila Pillai <sh...@ebi.ac.uk> on 2003/04/11 13:11:17 UTC

Returntype Datahandler

Hi,

    My service returns a file as an attachment. Being an RPC style service,
the return type at the server is DataHandler.  I followed the
samples/attachments example and left the return type to XMLType.SOAP_ARRAY.
But what I actually receive at the client is of class
"org.apache.axis.attachments.AttachmentPart" while I expect a DataHandler.

What should I set the set the returntype to? Should I do something like,
Call.addParameter("result", qnameAttachment, ParameterMode.OUT) ??

TIA,
Sharmila.