Re: [axis2] How to set Content Type for SwA type attachment

2009-07-26 Thread Andreas Veithen
ase64 to be selected. How to do that in SwA type attachment? > > > Thanks > Vadim. > (310)765-3812 > > -Original Message- > From: Andreas Veithen [mailto:andreas.veit...@gmail.com] > Sent: Friday, July 24, 2009 12:13 AM > To: axis-user@ws.apache.org > Subject: Re: [a

RE: [axis2] How to set Content Type for SwA type attachment

2009-07-24 Thread Vadim Letitchevski
0)765-3812 -Original Message- From: Andreas Veithen [mailto:andreas.veit...@gmail.com] Sent: Friday, July 24, 2009 12:13 AM To: axis-user@ws.apache.org Subject: Re: [axis2] How to set Content Type for SwA type attachment Vadim, The content type of the attachment is determined by a call to

Re: [axis2] How to set Content Type for SwA type attachment

2009-07-24 Thread Andreas Veithen
Vadim, The content type of the attachment is determined by a call to DataSource#getContentType(). The problem is that FileDataSource doesn't allow you to set the content type explicitly, but uses some filetype mapping mechanism. There is an alternative implementation called "CachedFileDataSource"

Re: [axis2] How to set Content Type for SwA type attachment

2009-07-23 Thread Sagara Gunathunga
Hi Vadim, AFAIK for HTTP binding for the SOAP with Attachment type messages content types should be as follows. 1.) content-type for HTTP header - multipart/related. 2.) Content type of SOAP message - text/xml ( for SOAP 1.1 ) , application/soap+xml (for SOAP 1.2). and binary data attac

[axis2] How to set Content Type for SwA type attachment

2009-07-23 Thread Vadim Letitchevski
I have used "Sample client which sends a message with SwA type attachments" code snippet to adjust my Stab generated from WSDL. Particularly these strings: FileDataSource fileDataSource = new FileDataSource("Name.tar.gz"); DataHandler dataHandler = new DataHandler(fileDataSource);