views:

65

answers:

3

Does Spring support SharePoint?

In my Spring Application, i would like to SAVE data in ShaePoint.

In another (java) application of ours, we are using CAML to read/update the data in SharePoint.

Do you think I should use the same(CAML) or does Spring provides any APIs which makes my job easy.

Thank You :)

EDIT: Its SharePoint 2003 and WSS 2.0

+2  A: 

Using your Java application you should be able to send XML to the SharePoint webservices. Check this link for the WSS 3.0 web services SDK: WSS 3.0 Webservices SDK (MSDN)

Dan Iveson
A: 

Here is the download link for WSS 2.0 (not enough reputation points to add another link to my previous answer): WSS 2.0 SDK Download

Dan Iveson
+1  A: 

AFAIK SharePoint should also support HTTP GET/POST for reading/writing data. However, in my own experience, reading/saving data from Java to SharePoint usually involves problem at the authentication level. In fact SharePoint usually uses NTLM authentication, which is hard to implement in Java. I did some experiments in the past using HttpClient and implementing NTML authentication as described here, which requires jCIFS.

Another quicker, but dirtier, option is the following. Since SharePoint ultimately stores files on the file system, just expose that path as a Windows UNC Path, and make it available from the machine where your Java application runs. Then, Java can just open a File on the UNC Path in the usual way, and everything is transparent for you application (A UNC Path will look something like \\machine-name\path\to\store). This is not very elegant, and possibly not very secure.

MarcoS