Hi,
I am building a suite of reports using SSRS 2008 R2 which are being deployed to Sharepoint 2010. This is all working fine however a requirement from my client is to be able to filter certain items in a report based on the users sharepoint group. I have created a test report that uses a textbox to display the user name using
=User!UserID
Which returns the correct user name. I then set up an xml datasource with the following connections string:http://<site name>/_vti_bin/usergroup.asmx and set the credentials to use Windows Authentication (Integrated Security) (I have also tried Do Not Use Credentials)
I am creating a new data set using the connection created above with the following query (N.B. actual user name replaced with domian\UserName for this post)
<Query>
<SoapAction>http://schemas.microsoft.com/sharepoint/soap/directory/GetGroupCollectionFromUser</SoapAction>
<Method Namespace="http://schemas.microsoft.com/sharepoint/soap/directory/" Name="GetGroupCollectionFromUser">
<Parameters>
<Parameter Name="userLoginName">
<DefaultValue>UserName</DefaultValue>
</Parameter>
</Parameters>
</Method>
<ElementPath IgnoreNamespaces="true">*</ElementPath>
</Query>
however when I click on refresh fields I get the following error:
The remote server returned an error: (404) Not Found.
<html>
<head>
<title>The resource cannot be found.</title>
<style>
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
pre {font-family:"Lucida Console";font-size: .9em}
.marker {font-weight: bold; color: black;text-decoration: none;}
.version {color: gray;}
.error {margin-bottom: 10px;}
.expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
</style>
</head>
<body bgcolor="white">
<span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1>
<h2> <i>The resource cannot be found.</i> </h2></span>
<font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
<b> Description: </b>HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
<br><br>
<b> Requested URL: </b>/bi/_vti_bin/usergroup.asmx<br><br>
</body>
</html>
----------------------------
Failed to execute web request for the specified URL.
Not Found: The remote server returned an error: (404) Not Found.
I find it interesting that the requested url does not contain the main sharepoint site address but instead shouws /bi/... where bi is the site that I am using.
I can open the page: http://<site name>/_vti_bin/usergroup.asmx within the browser and can see the available web services.
Can anyone confirm that I am making the right query call and if so why the error is happening.
Your help in this matter is greatly appreciated.
Thanks
Jon