• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

web service client should send file

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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..
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic