You mean that you use two soap calls to get both meta info. and DataHandler?

-----Original Message-----
From: Daniel Zhang [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 1:32 PM
To: [EMAIL PROTECTED]
Subject: Re: Soap attachment related question


Wei Li wrote:

>Hi,
>
>We are using apache soap attachment to upload and download data using WebSphere.
>
>We can send a JavaBean along with a DataHandler to the server to do upload, the Bean 
>can have all the meta data needed for handling this DataHandler. The apache 
>BeanSerializer can handle this.
>
>The question is when we do download, we can get DataHandler back, but how can we send 
>the related meta data back at the same time without having to write a new serializer? 
>(if we have to write a new one, how can we handle the DataHandler like what the 
>BeanSerializer already did?)
>
>Thanks,
>
>-- wei
>  
>
I had this problem before. SOAP with Attachement basically let you 
"upload" data files and its response does not allow you get data back as 
a Mime attachment.
It's sort of asymmetric process. For me, I deployed both SOAP client and 
server classes for both sides, let SOAP client (side A)pass the 
parameters to SOAP server(side B), then SOAP server class(side B) passed 
parameters to its client class(still side B), then client class(side B) 
invoke another soap call to sideA.

                       Side A             upload          Side B
                     (soap client)     ------->     (soap server)
                                                                     |
                                             download        V
                     (soap server)   <-------      (soap client)
                          
See illustrate above, hope it helps.

-Daniel

Reply via email to