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 David payam <ot...@yahoo.ca> on 2003/02/10 19:45:20 UTC
EJB and AXIS Tutorial
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 <ma...@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
RE: EJB and AXIS Tutorial
Posted by Mark Galbreath <ma...@qat.com>.
Dude, I got 7,030 hits with "EJB + Axis" on google.
Mark
Mark Galbreath
Principal Consultant
Workflow Process Engineering and Systems Integration
http:// <http://www.qat.com/> <http://www.qat.com/> www.QAT.com
410-703-367 / 800-799-8545
"Never attribute to malice that which can be adequately explained by
stupidity." ~Hanlon's Razor
-----Original Message-----
From: David payam [mailto:ottawausite@yahoo.ca]
Sent: Monday, February 10, 2003 1:45 PM
To: axis-user@ws.apache.org
Subject: EJB and AXIS Tutorial
hi:
I tried the link:
http://www.ammai.com/modules.php?op=modload
<http://www.ammai.com/modules.php?op=modload&name=Sections&file=index&req=vi
ewarticle&artid=6&page=1>
&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 <ma...@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! <http://ca.personals.yahoo.com/> Yahoo! Canada
Personals