Re: [Axis2] MTOM binary content

2006-05-04 Thread Ajith Ranabahu
Hi, As far as the content is concerned the zip file is a binary file just like the image file. All you have to do is read the file through a file input stream and then create a new DataSource using that inputstream. Ajith On 5/4/06, Michele Mazzucco [EMAIL PROTECTED] wrote: Hi all, the

Re: [Axis2] MTOM binary content

2006-05-04 Thread Michele Mazzucco
Hi Ajith, thanks for your reply. My questions, actually, is: In the MTOM sample application, the client has this metho private OMElement createEnvelope(String fileName) throws Exception { DataHandler expectedDH; OMFactory fac = OMAbstractFactory.getOMFactory();

RE: [Axis2] MTOM binary content

2006-05-04 Thread Michael Robinson
@ws.apache.org Subject: Re: [Axis2] MTOM binary content Hi Ajith, thanks for your reply. My questions, actually, is: In the MTOM sample application, the client has this metho private OMElement createEnvelope(String fileName) throws Exception { DataHandler expectedDH

Re: [Axis2] MTOM binary content

2006-05-04 Thread Michele Mazzucco
/0_95/OMTutorial.html http://ws.apache.org/axis2/0_95/OMTutorial.html -Original Message- From: Michele Mazzucco [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 6:36 AM To: axis-user@ws.apache.org Subject: Re: [Axis2] MTOM binary content Hi Ajith

RE: [Axis2] MTOM binary content

2006-05-04 Thread Michael Robinson
, May 04, 2006 7:38 AM To: axis-user@ws.apache.org Subject: Re: [Axis2] MTOM binary content Hi Micheal, thanks for your reply. Is your solution MTOM compliant? Michael Robinson wrote: XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(new FileReader(inputFile

Re: [Axis2] MTOM binary content

2006-05-04 Thread Ajith Ranabahu
Hi, What is required for the DataHandler is some sort of input soure. So as long as you have a DataSource that represents the binary then you are fine! Here is a code sample for doing that previous code FileDataSource dataSource = new FileDataSource(yourfile.zip); expectedDH =

Re: [Axis2] MTOM binary content

2006-05-04 Thread Michele Mazzucco
, May 04, 2006 7:38 AM To: axis-user@ws.apache.org Subject: Re: [Axis2] MTOM binary content Hi Micheal, thanks for your reply. Is your solution MTOM compliant? Michael Robinson wrote: XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(new FileReader(inputFile

RE: [Axis2] MTOM binary content

2006-05-04 Thread Michael Robinson
-Original Message- From: Michele Mazzucco [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 9:35 AM To: axis-user@ws.apache.org Subject: Re: [Axis2] MTOM binary content Micheal, my question comes from there, since the sample shown at http://ws.apache.org/axis2/0_95/mtom-guide.html loads