I talked this topic in my previous post. Now I have completed the Centralized Document Transfer and Sharing System. I found that it's not that useful to put my code here. Only how to solve the problem is worth to write. I use the Netbeans to build this application which is very fast. Netbeans is a great tool to build web service. Here are the steps to make the application run.
1. Use FTP to upload a file. Set up an FTP server first using FileZilla. Open a count for a client to connect and upload files.
2. Use Netbeans to build web service which can store file's information including: file name, version number, file type, and all file information. You will need a database to store those informations. The following is the database diagram.
3. Write web service and ftp client to upload file and connect web service to store file information.
<pre><code> String foo = "bar"; </code></pre>