Friday, August 01, 2008

Connect Sharepoint User Info Web Services


This arthicle will try to help you to make a simple connection via Web services and Sharepoint Designer to Users Info .

First you will need to create Datasource Library, go to the tab "Data Source Library" and select option "XML Web Services".

There you create a new connection.
First: you need to now what Web Service you need.
Physical the Web services are located here:
:\Program Files\Common Files\Microsoft Shared\web server extensions\12\ISAPI

To the purpose whe want you can use the "/_vti_bin/lists.asmx"

Second: Select the operation "GetListItems"

Third: Now you have a list of Parameters
Need to fill Parameter "listname" with name "User Information List"

After that you have connect to Web Service.
Then you need to work with Data.
Select the create Web Service on Datasource Library, and select "SHOW DATA".
There you select the field you want to show and when select "Multiple View", and the data will be show in a Table.

You are also able to use user information calling the Listname UserInfo, This happen if  you multiple language like German, the "User Information List" will have different name for that and UserInfo will be generics.

<soapenv:Envelope xmlns:soapenv=''> \
  <soapenv:Body> \
   <GetListItems xmlns=''> \
      <listName>UserInfo</listName> \
    </GetListItems> \
 </soapenv:Body> \

Lists.GetListItems Method

Hope this litle arthicle help.

No comments: