axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kraus, David" <dkr...@MicroStrategy.com>
Subject RE: [axis2] Creating OMText response using MTOM
Date Thu, 07 Jun 2007 21:57:41 GMT
Try axiom-api-1.2.4.jar.

 

________________________________

From: Anil Chukkapalli [mailto:anilchukkapalli@gmail.com] 
Sent: Thursday, June 07, 2007 2:55 PM
To: axis-user@ws.apache.org
Subject: Re: [axis2] Creating OMText response using MTOM

 

Hi

 The documentation points me to
"org.apache.axis2.attachments.ByteArrayDataSource" but i am  unable to
find it in any of the jars packaged with Axis1.2 can anyone help me and
point me to the jar file that contains this class. 

 Thanks
Anil

On 6/7/07, Anil Chukkapalli <anilchukkapalli@gmail.com> wrote:

Hi

 I want to create an OMText child for an reponse object of type
OMElement 

  byte[] filecontents = "contains the file contents";
...........................
  OMElement resp = fac.createOMElement ("response", ns);
  OMText binaryFileContents = ? 

  OMText binaryFileName = ?

  resp.addChild(fileName);
  resp.addChild(fileContents);

-----------------------------

 How can I create OMText nodes once we have the byte array. Also i
looked at the tutorial and would like to know in which package is the
class ByteArrayOutputStream located. 

Thank you
Anil 

 


Mime
View raw message