axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David payam <ottawaus...@yahoo.ca>
Subject EJB and AXIS Tutorial
Date Mon, 10 Feb 2003 18:45:29 GMT

hi: 
  I tried the link: 
http://www.ammai.com/modules.php?op=modload&name=Sections&file=index&req=viewarticle&artid=6&page=1

But it dosen't work, so anybody can send the tutorial to my email? 
ottawausite@yahoo.ca 
 
Thanks! 
 Maurizio Sciglio <maurizio.sciglio@txt.it> wrote: First of all thanx for the reply.

I think this should be done from the client side. I need to specify in the
server code.

Bye

----- Original Message -----
From: "Norris Merritt" 
To: 
Cc: 
Sent: Monday, February 10, 2003 7:07 PM
Subject: RE: DIME & Axis


> Hi Maurizio, do
> call.setProperty(call.ATTACHMENT_ENCAPSULATION_FORMAT,
> call.ATTACHMENT_ENCAPSULATION_FORMAT_DIME);
> before the call.invoke()
> -----Original Message-----
> From: Maurizio Sciglio [mailto:maurizio.sciglio@txt.it]
> Sent: Monday, February 10, 2003 8:00 AM
> To: axis-user@ws.apache.org
> Subject: DIME & Axis
>
>
> Hi all.
>
> I'm trying to download a file from a Web Service written in Java. In order
> to allow .NET clients to use this service I thought to use DIME for SOAP
> attachment. Sam Brow has submitted to this mailing list a message writing
> about this topic. Unfortunately in his example he simply sends back to the
> client the files attached within the request.
> This is the code I'm using :
> ------------------------------------------------------------
> public void SendImage(String filename) {
> FileDataSource fds=new FileDataSource(namefile);
> DataHandler dh=new DataHandler(fds);
> AttachmentPart ap=new AttachmentPart(dh);
>
> MessageContext context=MessageContext.getCurrentContext();
> Message responseMessage=context.getResponseMessage();
> responseMessage.addAttachmentPart(ap);
>
>
> }
> ---------------------------------------------------
>
> This simple Web Service method should send back to the client a file whose
> name is the parameter "filename". Doing this way the service doesn't work.
> Inspecting the SOAP messages I've understood why it doesn't work. The
> response is sent back to the .NET client in MIME format.
> How can I do the same thing in DIME? Where can I specify the content-type
of
> the response message?
>
> Please help me soon, It's very important for me.
>
> Thanks in advance.
>
> Maurizio Sciglio
>
>
>




---------------------------------
Post your free ad now! Yahoo! Canada Personals

Mime
View raw message