We implemented that with a method returning/reveiving
javax.activation.DataHandler on the java-service-side.
Axis converts that to a base64binary-field what you can use with every
Client. The important thing is, that you deactivate
SwA and enable MTOM in the axis2.xml.
Regards,
moritz
Am 08.07.2009 um 06:30 schrieb Rajneesh Kumar:
Hi All,
Can any one please tell me how to send file as attachment
(description is given below) in SOAP request using C# (.Net) client
to apache axis2 java web service?
Thanks & Regards,
Rajneesh Kumar
From: Rajneesh Kumar [mailto:[email protected]]
Sent: Thursday, July 02, 2009 12:33 PM
To: [email protected]
Subject: [axis-2:file upload]
HI All,
My client application (developed in c# .Net) will have to read file
(doc/pdf/tiff) from local drive and send the file data to axis-2
(running on a java based server somewhere else) as SOAP attachment,
then the web method will create file with that data and store it on
the server.
Now I want to know how to accomplish this. I mean how my .Net client
app will send that attachment and axis-2 web service will be able to
process the file.
Please provide some help.
Thanx in Advance…
-Rajneesh
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
======================================================================
Private, Confidential and Privileged. This e-mail and any files and
attachments transmitted with it are confidential and/or privileged.
They are intended solely for the use of the intended recipient. The
content of this e-mail and any file or attachment transmitted with
it may have been changed or altered without the consent of the
author. If you are not the intended recipient, please note that any
review, dissemination, disclosure, alteration, printing, circulation
or Transmission of this e-mail and/or any file or attachment
transmitted with it, is prohibited and may be unlawful. If you have
received this e-mail or any file or attachment transmitted with it
in error please notify OTS Solutions at [email protected]
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
======================================================================
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
======================================================================
Private, Confidential and Privileged. This e-mail and any files and
attachments transmitted with it are confidential and/or privileged.
They are intended solely for the use of the intended recipient. The
content of this e-mail and any file or attachment transmitted with
it may have been changed or altered without the consent of the
author. If you are not the intended recipient, please note that any
review, dissemination, disclosure, alteration, printing, circulation
or Transmission of this e-mail and/or any file or attachment
transmitted with it, is prohibited and may be unlawful. If you have
received this e-mail or any file or attachment transmitted with it
in error please notify OTS Solutions at [email protected]
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
======================================================================
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
======================================================================
Private, Confidential and Privileged. This e-mail and any files and
attachments transmitted with it are confidential and/or privileged.
They are intended solely for the use of the intended recipient. The
content of this e-mail and any file or attachment transmitted with
it may have been changed or altered without the consent of the
author. If you are not the intended recipient, please note that any
review, dissemination, disclosure, alteration, printing, circulation
or Transmission of this e-mail and/or any file or attachment
transmitted with it, is prohibited and may be unlawful. If you have
received this e-mail or any file or attachment transmitted with it
in error please notify OTS Solutions at [email protected]
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
======================================================================