I am writing a small program to connect sharepoint then retrieving document from it using C#. Can anyone suggest me APIs to access sharepoint (2007).
Do i need to setup sharepoint on my machine? If yes then is there any alternative to do so?
I am also looking for some sample code开发者_Go百科 to start with coding?
Is it compulsory to code on Windows Server OS ?
Jene
If you are accessing SharePoint using the Object Model then yes you need to run the code in the SharePoint server/Web Front End Farm for the code to work.
One alternate is that you can use the Web Services provided by SharePoint to access the details from SharePoint, this method will not require you to run the code in the SharePoint server. You can find this example for accessing the SharePoint using WS
No you can develop your code in the non Server OS and test it in the Server OS, if you want to debug they you will have to develop it in the server OS where the SharePoint is installed / you will have to use the remote debugger. Note : SharePoint 2010 allows you to have a development setup in Windows 7 OS.
I dont have Sharepoint installed on my localmachine, I use WSSDeploy to do all that, that way, all i need to do is add the references to the correct DLLS for sharepoint in my project and can code as normal.
WSSDeploy http://wssdeploy.codeplex.com/
精彩评论