posting of file between two servers not happening using multi part request
Joined: May 11, 2009
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.
Joined: Oct 04, 2006
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!