• 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

posting of file between two servers not happening using multi part request

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello

I have an requirement of posting a file from a server based in US with my client and I want to make a host to host integration with my client with my server based in india.
So that my client can post the files at any time and the file should get dumpped to my server.
this all process should be done invoking a service.


Right now i have enabled one service on my server which accepts a HTTPS request and it looks for the files in the request as a multipart request.
When ever my client is making a request my server generates a response to it but the file doesnt come to my server.
when i try to read the request and try to get the file names from the request header is giving a null pointer exception.

can any one help me out in this regard.
Its quite urgent for me.

 
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!
It sounds like you'd be better off using FTP, SFTP or perhaps a RESTful service to solve your problem, but if you really want to use SOAP web services, then you should have a look at the section on SAAJ in the JavaEE Tutorial: http://docs.sun.com/app/docs/doc/819-3669/bnbhr?a=view
Best wishes!
reply
    Bookmark Topic Watch Topic
  • New Topic