Title: attachments with generated stubs
Mark,
 
Go to the link below for an excellent article written by Steve Loughran which explains how to extract attachments within the service implementation method (your first approach).
 
 
Sanjesh
 
-----Original Message-----
From: Volkmann, Mark [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 2:24 PM
To: '[EMAIL PROTECTED]'
Subject: RE: attachments with generated stubs

Thanks!  I had activation.jar, but I needed mail.jar.
 
It seems that there are at least two ways to get an attachment added to the SOAP request.  One way is to call addAttachment(dataHandler) on my generated stub.  Another way is to pass my DataHandler as a parameter to one of my service methods on the stub.
 
If I use the first approach, how do I access the attachment within the service implementation method?
 
If I use the second approach then I get an exception that says "Couldn't find a matching Java operation for WSDD operation "method-name" (1 args)".
 
Any ideas would be greatly appreciated!
-----Original Message-----
From: Tom Jordahl [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 12:20 PM
To: '[EMAIL PROTECTED]'
Subject: RE: attachments with generated stubs

 

You need activation.jar and perhaps mailapi.jar in your classpath during execution.

 

--
Tom Jordahl
Macromedia Server Development

-----Original Message-----
From: Volkmann, Mark [mailto:[EMAIL PROTECTED]
Sent: Monday, March 31, 2003 10:18 AM
To: '[EMAIL PROTECTED]'
Subject: attachments with generated stubs

 

There is a sample of using attachments that is bundled with Axis (in the samples/attachments directory).  It uses the SAAJ API.  What I'd like to do is use a generated stub (from wsdl2java) and add attachments before I invoke methods on that stub.  In org.apache.axis.client.Stub there is an addAttachment method.  When I use that I get a message that says "java.lang.RuntimeException: No support for attachments".  Is this approach supposed to work in Axis 1.1 RC2?



***********************************************************************************
WARNING: All e-mail sent to and from this address will be received or
otherwise recorded by the A.G. Edwards corporate e-mail system and is
subject to archival, monitoring or review by, and/or disclosure to,
someone other than the recipient.
************************************************************************************



**********************************************************************
This e-mail is the property of Enron Corp. and/or its relevant affiliate and may contain confidential and privileged material for the sole use of the intended recipient (s). Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender or reply to Enron Corp. at [EMAIL PROTECTED] and delete all copies of the message. This e-mail (and any attachments hereto) are not intended to be an offer (or an acceptance) and do not create or evidence a binding and enforceable contract between Enron Corp. (or any of its affiliates) and the intended recipient or any other party, and may not be relied on by anyone as the basis of a contract by estoppel or otherwise. Thank you.
**********************************************************************

Reply via email to