File uploading from other web application to sharepoint server

Jun 19, 2013 at 11:57 AM
I am messing with an issue and still not been able to find the solution. This is my first time ever with sharepoint. So, any help would be much appreciated. Here is the scenerio

1- I have a stand alone web application
2- I also have a stand alone sharepoint server.
3- Both are on different servers.
4- I need to upload a file from web application to sharepoint.

I found 2 methods online,
1- Using the webservice provided by sharepoint (CopyIntoItems)
2- Using Jquery libarary of sharepoint webservice

After googling for many hours, i think the jquery part will not work (You can correct me).

I am looking for the following

Q: A method that takes username/password and uploads a pdf file to sharepoint server.

I will be grateful if you can point me to the right direction.