Hot answers tagged

7

The actual answer is: Use Factory="Microsoft.SharePoint.Client.Services.MultipleBaseAddressBasicHttpBindingServiceHostFactory, Microsoft.SharePoint.Client.ServerRuntime, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" in your svc file. The MultipleBaseAddressDataServiceHostFactory one is for REST, where your endpoints are your method (...


6

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" encoding="...


6

I found it. The missing DLL was in C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.ServerRuntime.dll But wasn't registered on VS, so you need to manually browse to the file.


4

You should put your configuration attributes in the web.config located at C:\inetpub\wwwroot\wss\VirtualDirectories and choose the folder of your Web Application. By the other hand you can use the class SPWebConfigModification to make changes in the web.config file programmatically SPWebConfigModification modification = new SPWebConfigModification("...


4

Heres the sample from the Blog: Generate a class like this: public class CustomMultipleBaseAddressWebServiceHostFactory : Microsoft.SharePoint.Client.Services.MultipleBaseAddressWebServiceHostFactory { protected override System.ServiceModel.ServiceHost CreateServiceHost(Type serviceType, Uri[] baseAddresses) { return new ...


3

I think you might need to use the SharePoint provided ServiceHostFactory to create the appropriate endpoints for your service. Look at this tutorial for the Service Host Factories available: http://msdn.microsoft.com/en-us/library/office/ff521581(v=office.14).aspx SOAP = MultipleBaseAddressBasicHttpBindingServiceHostFactory REST = ...


3

This blog post may help: http://www.sharepoint.bg/radi/post/Custom-WCF-Services-and-setting-Reader-Quotas-in-SharePoint-2010.aspx The following code will set all the quotas to their max value. If you are still getting errors with that quota then you are likely trying to send too much info in one call and its time to split it into multiples. SPWebService ...


3

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 = @...


3

There's no way to do that. The normal welcome page is provided by the handler which handles .svc requests for ASP.NET. In SharePoint, that handler isn't there. It's replaced by the WCF service host factory you specify and that just doesn't supply that page. So just drop it, or you'll be spending a lot of time trying to find a page which isn't there (and ...


3

You will have to create an external content type in order to get data from external sources. This will give you flexibility such as giving list experience(if needed), remote event receivers, integrating with SP search and etc... You can use SharePoint Designer as well as Visual Studio for this. This is how to do using Visual Studio: Create SharePoint ...


3

I have the same problem on SharePoint 2013. If I create a custom Service factory based on SharePoint factory and override config settings (MaxReceivedMessageSize) the error gone. More info: http://cameron-verhelst.be/blog/2014/10/19/hosting-a-wcf-service-in-sharepoint-with-a-spcontext/


3

Since you seem to get a lot of not so great answers on this question: You can not use the Server Object Model outside of the SharePoint farm. This means that you can not use the Microsoft.SharePoint.dll. Instead you need to use the Client Object Model (CSOM). So you need to convert your code (rewrite it) to CSOM and instead of the Microsoft.SharePoint.dll,...


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

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

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

Here is a way to do it directly in InfoPath, http://blogs.msdn.com/b/infopath/archive/2006/04/05/569338.aspx. It's called the double eval trick and can be used to turn repeating form data into a single column value that can be pushed to a Sharepoint list (multiple line of text column). You could push this to a Holding list where you could then use an event ...


2

I ran into the same problem and solved it by replacing the String[] by a IEnumerable<StringWrapper>, or in your case IEnumerable<Personal_nameElement>. This could look like: public class Personal_nameElement { public String Value { get; set; } } And in the BDC: <TypeDescriptor Name="Personal_name" TypeName="System.Collections.Generic....


2

I solved this by creating a Feature and then add this code in FeatureInstalled method. public override void FeatureInstalled(SPFeatureReceiverProperties properties) { SPWebService contentService = SPWebService.ContentService; SPWcfServiceSettings wcfServiceSettings = new SPWcfServiceSettings(); wcfServiceSettings....


2

My ECT's Read List and Read Item operations returned columns whose type were complex. Once I changed the return columns to all be simple/native/value types, I was able to create an External List based on my ECT in either the browser or SharePoint Designer.


2

_ Hi Bernd My draft post became over 2 pages, so I decided to cut some details, to get any replies at all. I have tried AllowNtlm = false, but for some reason I get the error message "The remote server did not satisfy the mutual authentication requirement." when I run. In IIS-Manager on the IIS-app I have only "Windows Authentication" and "...


2

After some tests and issues, I finally discovered the correct way to reach my goal. The idea is to attach a custom service behavior. Here is the code of the behavior: internal class ValidateSPFormDigestAttribute : Attribute, IServiceBehavior { public void AddBindingParameters(ServiceDescription serviceDescription, ServiceHostBase serviceHostBase, ...


2

You have to add the Web Service to the Search Service Application, using PowerShell, and perform a full crawl in order to make it do anything. Follow Script below: # Create and add your CEWS to IIS, before using this if ((Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue) -eq $null) { Add-PSSnapin "Microsoft.SharePoint....


2

I create WCF web services for integration with other applications. A real world example is a custom .net web application we had that communicated with the SharePoint server to add documents, create new SharePoint sites, change permissions to the SharePoint site etc.


2

Probably you right, I guess custom WCF service (endpoint:http://sp/_vti_bin/Namespace/Service.svc/) is used to cover specific cases that does not seem possible to perform using standard SharePoint 2013 REST API or due to performance limitations. But still, SharePoint 2013 REST API (_apiendpoint) should be considered as a preferred choice for a list items ...


2

You can directly access your WCF Web Methods from client script. http://www.wictorwilen.se/Post/Calling-a-WCF-Service-using-jQuery-in-SharePoint-the-correct-way.aspx http://blogs.msdn.com/b/sharepointdev/archive/2011/02/22/calling-a-wcf-service-using-jquery-in-sharepoint.aspx http://blogs.msdn.com/b/anweshi/archive/2010/11/30/calling-wcf-service-using-...


2

There is no proper answer for this question rather you just make sure that all performance tuning things performed. I would do / check couple of things. Make sure SQL server memory usage is fine auto-growth rate for Profile DBs and MySie DBs should be MSFT best recomendation i.e 256MB Check Antivirus App Pool of MySite & also User Profile Service ...


2

That may be because the default address is the server name, and your code is run on the server itself. In that case, everything is fine. But if you use another domain name to target the server from the server itself, you may face the "loopback check" feature of Windows Server. You can test quickly by disabling this feature, like mentionned in method 2 of ...


2

MultipleBaseAddressWebServiceHostFactory for a REST service. Microsoft.SharePoint.Client.Services.MultipleBaseAddressWebServiceHostFactory dynamically creates the configuration hence no need to update web.config file of SharePoint web application. One thing to notice here is that you can’t access the service in browser with MEX endpoint. For example if you ...


2

Do you have any error about WCF data services and AppFabric? If yes, i suggest you post your special error message So that we can help you solve it better. This is a reference about how to: Add, Update, or Remove a WCF Data Service Reference: https://msdn.microsoft.com/en-us/library/cc668183.aspx About AppFabric, you can use a variety of methods to ...


2

_vti_bin is a special folder since it's "virtualized" and can be called by any valid (but non-physical in IIS/ASP.NET sense) SP Web site. ASP.NET .asmx infrastructure (that is responsible for the dynamic .wsdl generation) is not aware of this specific case, and relies on the physical underlying path http://server/_vti_bin/... in all cases. However, ...


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