Tag Info

Hot answers tagged

4

I get it after few days of googling and testing. The solution is very easy and you don't have to do anything in your development excepting use a factory on your service. This link explain what factory use depending on the service type: WCF Services in SharePoint Foundation 2010 So, the solution to my problem is to modify the "svc" file and add the factory ...


4

SPWeb.Users.GetByEmail() and SPWeb.Users.GetById() is only going to return the users that have logged in to your site. Try the method SPWeb.EnsureUser(). MSDN says the following: Checks whether the specified logon name belongs to a valid user of the website, and if the logon name does not already exist, adds it to the website.


4

Phil, TransportCredentialOnly is not using SSL - this is really a way to tell WCF that the security is in the message credentials - and as we know Windows credentials are not really secure so if used you might want to use IPSec. If you are looking for SSL security with Windows Authentication you need to ensure you endpoints are configured for SSL and use ...


4

Concerning the answer with reference to S.Y.M. Wong-A-Ton How to submit the rows of a repeating table in InfoPath to a SharePoint list I managed to succeed in running the code from that article in Infopath 2010 (Sharepoint Online/Office 365) only after I changed CAML template XML file content from given in article: <?xml version="1.0" ...


3

We were having this same issue, though with a different service, search instead of managed metadata. The load frequently took 15 seconds. This KB article had the fix for us: http://support.microsoft.com/kb/2625048 . SharePoint 2010 uses SSL to encrypt intra-farm communication. It should work invisibly, but under the right conditions, it can cause problems, ...


3

The service needs to be AJAX enabled to generate a javascript proxy for you. Lists.asmx is not AJAX enabled. [WebServiceBinding(ConformsTo=WsiProfiles.BasicProfile1_1), WebService(Namespace="http://schemas.microsoft.com/sharepoint/soap/")] public class Lists : GenericService, ISoapServiceLists, ISoapServiceListData, ISoapServiceListSchema, ...


2

Ok, firstly, this is a bug in the implementation of SPUtility.StackTraceString; since StackFrame::GetMethod() CAN return null, but this is not checked. The solution, therefore is either to ensure that in the instantiation of the StackFrame collection there are no null methods created. Essentially this means that somewhere in the call stack for this thread ...


2

Have you tried setting AllowUnsafeUpdates to True at the beginning of your method and then to False after the Update? http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsite.allowunsafeupdates.aspx


2

Arrrrrgh! Finally figured it out after messing with this for a good day. I want to leave this here just in case anyone else runs into the same problem. When I register the Javascript endpoint, I use the full URL of the service. So if the root of my site is at: http://mydomain.com/sites/site1 I register it at: ...


2

Finally got it working after some changes in IIS under authentication section for "_vti_bin" directory. Set "Anonymous Authentication" to Disabled and "Basic Authentication" to "Enabled". For time being this setting worked for me; not sure whether this is going to work every time.


2

As James said, you can either use some client side technology like javascript/jQuery/ECMAScript or the Silverlight to call WCF services. You can build custom actions by creating XML definitions in element files in Visual Studio projects and attach the workflow logic behind them. And, then you can specify where custom actions should appear, such as on the ...


2

Dare i ask why you wouldn't just use SPServices (created by @sympmarc), an open source jQuery plugin that wraps methods in the OOTB SharePoint Web / WCF Services, making the use of these services in JavaScript as simple as the following example: $(document).ready(function() { $().SPServices({ operation: "GetListItems", async: false, listName: ...


2

If your WCF is located under '_layouts' folder and configured correctly you have access to the SharePoint object model as in web parts, application pages, etc. So you can use list.GetItems(spQuery) method to filter items. You can read more about WCF services and SharePoint here. How to configure your service you can find in this post.


2

You should not return a list of SPFile from your web sevice, the SPFile has a reference to SPListItem, which has a reference to SPWeb, ... All of the probably refering to a Site which you accessed (and hopefully disposed) inside RunWithElevatedPrivileges, so serializing the SPFiles are going revitalize these sites, which you aren't allowed to and certainly ...


2

Based on the implementation of the Appending Multi-line text field I'd say that it's expected behaviour. Is it what most users want? NO, but that's what you get. The value of a Appending Multi-line text field is in fact only the last added entry. when rendering it SharePoint retrieves the value (and timestamp/user) from previous versions. You can verify ...


2

I had the same issue and got it to work in 2 ways. You have to make the app pool account running the WCF service either an Administrator on the SharePoint Server or make it a Farm Administrator. You also have to give this account rights on the Content Database as well as the SharePoint Config Database. For some reason I am finding out that I also have to ...


2

Not sure if you are using the Windows Identity Foundation (WIF) which simplifies accesses between services. There is a four-part series on accessing WCF services using SharePoint that may provide you with more information. The following two posts may be directly relevant to your development effort - WCF: Determining Caller Identity within WCF Web Services ...


2

http://www.bizsupportonline.net/infopath2007/how-to-submit-items-rows-repeating-table-infopath-sharepoint-list.htm There is a step by step process to do it above. The solution is described as: Programmatically add rows of data from a Repeating Table to a SharePoint list by submitting a CAML update batch to the UpdateListItems method of the Lists web ...


2

Why don't you try to first make a request to the site url, which will authenticate you (I am assuming your .NET Client and the SharePoint site are in the same Network/Forest), and you will be able to get the correct cookies that you can use against your REST service. To use the site url cookies against your REST service: const string siteUri ...


1

you can pass the users token to the wcf service token of current user can be found as follows: SPWeb myWeb = SPContext.Current.Web; SPUser user = myWeb.CurrentUser SPUserToken token = user.UserToken SPUserToken Refrence


1

I'm not sure, but I think that you can add your .svc to the Module element of SharePoint project. Then add this module to a site scoped feature. In this case your .svc is accessable after feature activation on the site collection level. If you should activate your feature on the all sites of web application, you can use PowerShell script.


1

This was the same problem with ASP.NET WSDL web services in SharePoint 2007, and why originally you had to create custom WSDL generation pages. This has been fixed in SharePoint 2010 by using SharePoint service factories. If you are using the Microsoft SharePoint web service factories, the root domain should not be a problem as the WSDL generation for the ...


1

Please check the endpoint address and see if defining it to sharepoint.foo.com does the trick. Also I ran into this where you have multiple suggestions, specifically instructions in how to configure the endpoint of the mex.


1

Here are some points which I could think of, which might help you, It may depend on your farm configuration. If your farm is a stand alone server or the index server is hosted on the same web front end servers, this might occur when crawling occurs parallely. Check for any timer jobs or user profile synchronization which might be running parallely. Check ...


1

Unfortunately, the REST API with Javascript will not give you the recurring calendar items. If you want to retrieve the recurring calendar items with client side code, you need to take a look at SPServices: http://spservices.codeplex.com/ Take a look at this thread: http://spservices.codeplex.com/discussions/254560


1

If your web application is configured for Claims mode authentication, then you cannot pass NTLM credentials/tokens. You must get a FedAuth token from the identity provider and pass it to the service. I suggest that you read Vittorio's book on Windows Identity Framework ...


1

Follow this steps from this article : http://msdn.microsoft.com/en-us/library/ff521581.aspx By the way, You can choose to have the WCF without the factory. Just supply the configuration in a separate web.config and place it along with your SVC file.


1

You must provide UriTemplate like: UriTemplate = "/SearchList?test={test}" [OperationContract] [WebInvoke(Method = "POST", UriTemplate = "/SearchList?test={test}" BodyStyle = WebMessageBodyStyle.Bare, RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)] List<string> SearchList(string test); Maybe it is not the whole ...


1

Check the properties for the files that are not being deployed/copied. Make sure that Copy To Output Directory is set to either "Copy Always" or "Copy if Newer" depending on your preference. Check that the Deployment Location is set to something like "{SharePointRoot}\ISAPI\".


1

First thing to look at would be the contents of your solution package (wsp). Perhaps the mapped ISAPI folder is not being included in the package. Within Visual Studio, open the Package.package file. 1.) In the design view, your ISAPI mapped folder should be in the right hand pane (Items in the package) 2.) If you switch to the manifest view, there should ...



Only top voted, non community-wiki answers of a minimum length are eligible