aspose file tools*
The moose likes Web Services and the fly likes posting of file between two servers not happening using multi part request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "posting of file between two servers not happening using multi part request" Watch "posting of file between two servers not happening using multi part request" New topic
Author

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

sahej aggarwal
Greenhorn

Joined: May 11, 2009
Posts: 6
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.

Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: posting of file between two servers not happening using multi part request
 
Similar Threads
Don't understand mode flag
How to add weblogic 8.1 Web service runtime into Eclipse?
How to get Client IP At Server Side in RMI
Query on http and ftp Protocols
IBM HttpServer and websphere Appserver