Sharepoint VW interface

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Sharepoint VW interface

Bob Nemec
Has anyone had experience with interfacing VW with Sharepoint?

Our company is implementing Sharepoint as a corporate data store, with plans to deploy packaged document management, workflow and CRM applications.
We would like our VW / GS application to read and update data in Sharepoint. I assume that I'll be able to use Sharepoint web services to do this, but it would be helpful to know of previous experiences.

Thanks for any help,
Bob Nemec
HTS 

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Bob Nemec
Reply | Threaded
Open this post in threaded view
|

Re: Sharepoint VW interface

Holger Kleinsorgen
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:

  DotNET.Microsoft.SharePoint.Client.ClientContext New: 'http://testserver'

->

a DotNET.Microsoft.SharePoint.Client.ClientContext(System.IndexOutOfRangeException: ObjectRegistry does not include object with id 1

   bei Heeg.DotNETProxyBase.DeReferenceObject(DotNETProxyBase* , Int64 objectID)
   bei Heeg.MscorlibProxy.System_Object_ToString(MscorlibProxy* , return_type* vwReturnValue, Int64 objectID))
Reply | Threaded
Open this post in threaded view
|

Re: Sharepoint VW interface

Holger Kleinsorgen
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.
].
Reply | Threaded
Open this post in threaded view
|

Re: Sharepoint VW interface

Holger Kleinsorgen
Holger Kleinsorgen wrote
| clientContext listCollection enumerator |
clientContext := DotNET.Microsoft.SharePoint.Client.ClientContext New: 'http://testserver'.
clientContext Web Lists.
listCollection := clientContext LoadQuery: clientContext Web Lists withT:
...
erratum: the line
   "clientContext Web Lists."
is superfluous.