wcf

SecurityException when accessing SPFarm PropertyBag from WCF service hosted in SharePoint

I've hosted an WCF service in SharePoint 2010 (basicHttpBinding) using this tutorial. The assembly is deployed to the GAC and contains the WCF service and a timerjob. Both call the same method. The timerjob works successful. But when I call the method of the WCF service, I get an exception, that it can't write a property in the SPFarm P...

Maintain WCF Session with .NETCF 2.0 Mobile Application

I am developing Windows Mobile Application (NETCF 2.0) which needs to make connection to WCF Service (4.0) hosted on IIS. Mobile Application establishes connection with Server (containing WCF Service) for each transaction which requires authentication from database. How can I maintain WCF Sessions to authenticate Mobile Application for ...

Help overriding the ServiceHost in WCF

The communication object, ExtendingWCFwithServiceHost.clsMyOwnHost, has overridden the virtual function OnOpening but it does not call version defined in the base class. I'm getting this error while overriding the OnOpening method of the ServiceHost class. Would appreciate any help. Thanks. ...

Deploy SQL Express in App_Data directory

Despite using many sql databases before, I've never actually tried to develop an app with a database in the App_Data directory. Until now!! It's a small WCF service project, which has a sql express 2008 r2 database. Working in VS there are no problems, I thought it would be as easy as deploying to a server (win 2008 with sql 2008 r2 i...

Strip off XMLDSIG elements from incoming XML POST to WCF RESTful Service

Folks, I am building a RESTful service that is secured by providing an XMLDSIG XML signature at the bottom of the XML document. When I send this document to the server, the WCF service is doing the XML de-serialization method on the HTTP payload to give me a C# class. Unfortunately for this de-serialization to occur properly, the C# cl...

System.Configuration: Question on the Configuration.Save method

What is the difference between configuration.Save(ConfigurationSaveMode.Modified, true) and configuration.Save()? Background: I have a programme, where I manipulate a web.config, which I use for configuring WCF Services. I load it into a Configuration object, change some attributes and save it back. When I use configuration.Save(Configu...

Custom SharePoint 2010 WCF Service - How to set MaxReceivedMessageSize parameter

Hi, I have developped a custom WCF Web Service within a SharePoint 2010 Visual Studio empty project. My web service is working well. The problem is related to the size of the request I can send to this web service. I have realized that is something around 300Kb. If I go bigger than that, the service/client is sending me an exception. ...

Getting an advanced structured object with Ksoap2 from a WCF-service to an Android app

Hello, What I want to accomplish is the following. Create a WCF webservice that is called by an android application. The webservice should return alot of information that is gathered from a large database. The information will consist of a View with 20 different tables with around 1-2 rows in each tables containing information. The...

Async Web client integrating with Windows Workflow Foundation (WF4)

I am designing a workflow using WF4 that is supposed to be consumed by a Web client. The workflow aggregates WCF services and is triggered by a Receive activity that is in turn spawned from a Web page. While the workflow is being executed, the user's Web session is active, and certain workflow activities may need to inform a user, i.e. W...

How can I control the name of a generic WCF Message Contract

I'm generating a WCF service using the message contract model. I have created a generic request message contract like so: [MessageContract] public Request<T> { [MessageBodyMember] public T Details { get; set; } } I'm used to using [DataContract(Name="Contract{0}")] to produce readable names for generic data contracts, but thi...

Help Translating a small C# WCF app into Visual Basic (part 2)

Hi - I recently asked a question about translating a code sample I found on on the internet from C# into VB and I was given links to websites that automate code translation (http://converter.telerik.com/ & http://www.developerfusion.com/tools/convert/csharp-to-vb/). I am very new to VB and unfortunately the VB that the translators retur...

How to get image from silverlight to non-silverlight ?

Hi, I need a very weird thing I admit. I hope you'll be able to help me. My current situation (all in one solution VS2010): I have the Silverlight assembly with user-control (basically a drawing of kind) I have a WCF service to provide the images (hosted in the website project) I somehow need to: when someone requests the RESTful...

Adhoc stored procs on silverlight app

I have a simple requirement to be implemented on a silverlight app. I want to list down all the stored procs in a drop down and view its output on a grid. I am currently having a linq to sql class where I have drag dropped all the stored procs I want to view and generated the classes on a .dbml file. This works for me at the moment. Howe...

MSMQ vs. SQL Server Service Broker

I have an application that consists of three parts: a front-end web shop for end-users and business partners an order-management system to handle those orders a technical database system to handle all the technical details of those products and services ordered Today, those systems (which are on separate servers and being developed b...

Running WCF service shows directory listing instead of the service

I'm fiddling with a wcf service, and I've created a simple test one. When I 'run' the service, I get a directory listing in ie of the folder that the service is in. I can click on the 'myservice.svc' and it brings me to the page I'd expect, so that's ok. I get the eerie feeling that this is wrong. Is it? If so, how is it fixed? ...

When to use WCF Service and Plain old Windows Service?

We are developing an application that needs to be executing on a periodical basis (e.g. daily, or weekly depending on config). This application needs to consume existing WCF Services but this application itself does not expose any methods for others to consume. What would be the most suitable (and future-proof) technology to use for t...

SqlDependency & OnChangeEventHandler discovering what data has changed?

When using SqlDependency & OnChangeEventHandler in .Net with SQL Server, is it possible (simple?) to discover what data has changed? ...

Wrapping service call for common error handling and tracing in WCF

Hi, Does anyone have a good example for common error handling for service calls? I just started a new project and I see a lot of duplicate code that I don't like and would like to get rid of. I manage to do so in several other layers but in the proxy layer making the calls to services it is a little bit harder. The code is basically str...

Display service's certificate in WCF client?

I've got a WCF client and service. The service is configured to use a certificate for encryption. This is all working fine. We're using self-signed certificates for testing. Except that one of my QA guys has deleted the certificate from his client PC and he can still connect to the service. This leads to my question: In Internet Explo...

WCF client can still connect after deleting service's certificate

I've got a WCF client and service. The service is configured to use a certificate for encryption. This is all working fine. We're using self-signed certificates for testing. Except that one of my QA guys has deleted the certificate from his client PC and he can still connect to the service. I've looked in CERTMGR.MSC and I can't see an...