Holger Kleinsorgen wrote
Bob Nemec wrote
Has anyone had experience with interfacing VW with Sharepoint?
Theoretically, it should be possible to use the Sharepoint 2010 client object model with DotNET connect.
This does not work for me yet, though
Problem solved: I compiled the .NET proxy DLL with VS 2010, which will compile against .NET 4.0. So I followed the directions mentioned in the DotNET documentation of VW 7.9 and copied vwnt.exe.config to the VM directory. Also I head to generate code for some new base classes.
Now I can access SP via DotNET connect, which is very cool.
e.g. to show the titles of all lists:
| clientContext listCollection enumerator |
clientContext := DotNET.Microsoft.SharePoint.Client.ClientContext New: '
http://testserver'.
clientContext Web Lists.
listCollection := clientContext LoadQuery: clientContext Web Lists withT: DotNET.Microsoft.SharePoint.Client.List.
clientContext ExecuteQuery.
enumerator := listCollection GetEnumerator.
[ enumerator MoveNext ] whileTrue: [
| list |
list := enumerator Current.
Transcript show: list Title;cr.
].