Phil,
Our server has a method like this that returns a pdf file:
        public DataHandler generateReport(String productId)
      {
        ..........................
      }

WSDD section corre. to the method looks something like this, with a returnQName 
definition:
    <operation name="generateReport" returnQName="rptfile" 
returnType="ns1:DataHandler" >
        <parameter name="productId" type="xsd:string" />
        ..........................
    </operation>

Our MS SOAP client code that deals with attachment looks something like this:
  Reader.LoadWithParser (Connector.OutputStream, Parser)
  Set RcvdAttachments = Reader.Attachments
  if (Reader.IsAttachmentReference(Reader.RPCParameter("rptfile")) = True) then
       Set ReceivedAttach = Reader.GetReferencedAttachment 
(Reader.RPCParameter("rptfile"))


See this link for a detailed discussion on this topic:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg12029.html

Thanks
Jai

-----Original Message-----
From: Bochnak Filip [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 05, 2004 12:02 PM
To: '[EMAIL PROTECTED]'
Subject: AW: Best Practise DIME


Hi Jai
Thanks for your reply.
How did you implement the service.
How can I add this referenced attachments or hrefs to my service.
Which sample did you follow? 

thanks in advance
Phil


-----Urspr�ngliche Nachricht-----
Von: THOMAS, JAI [AG-Contractor/1000] [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 5. August 2004 16:27
An: '[EMAIL PROTECTED]'
Betreff: RE: Best Practise DIME


Phil,
Your client don't realy need to deal with datahandlers. Response message
will contain referenced attachments and your client just has to be capable
of accessing these attachments. We in fact have an Axis server returning
datahandlers and MS SOAP client consuming the service.
Jai

-----Original Message-----
From: Bochnak Filip [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 05, 2004 3:01 AM
To: [EMAIL PROTECTED]
Subject: Best Practise DIME


Hi all
I�m trying to send attachment files from gsoap to my java service via DIME.
I found out that axis for java is using datahandler and it�s very easy to
implement it, when I use a java client.
But my client in gsoap doesn�t support any datahandlers.
What is the best way to do it? Is there another way in java to bulid a
service which sends and receives attachments that
is interoperable or conform with other soap clients?
Or are there any possibilities to make a wsdl contract?

I would appreciate any hints.
Many thanks
Phil

Reply via email to