File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes web service client should send file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "web service client should send file " Watch "web service client should send file " New topic
Author

web service client should send file

kavita hm
Greenhorn

Joined: Oct 02, 2009
Posts: 3
I am using axis2 to develop web service. Client has to send file and server should extract data from file. How can i do that?
Is it possible to send more than one file at a time?
Please let me know the answer as soon as possible.

Thanks in advance.
Rahul P Kumar
Ranch Hand

Joined: Sep 26, 2009
Posts: 188
create an attribute in wsdl format to pass string. Now Send your file in form of string frmo client side. on the server side it can be get in form of string again
kavita hm
Greenhorn

Joined: Oct 02, 2009
Posts: 3
thank u....
I developed web service to upload file using axis2 via MTOM.
But the problem is I am able to upload file only in axis2 not in tomcat server.even i enabled mtom in axis2.xml.
can anyone tell me what is the solution for this..
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
Flies sent with SOAP messages are preferrable handled using SAAJ, the SOAP with Attachments API. Including attachment data inside a SOAP message is generally not a good idea.
For more information and a tutorial, see http://java.sun.com/javaee/5/docs/tutorial/doc/bnbhf.html
Best wishes!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: web service client should send file
 
Similar Threads
Need some explanations about web-services basics.
Web service and threads
Invoking a https webservice
File Transfer - Web Services over FTP?
sending pdf file to client as byte array