wcf

Learning WCF with Entity Framework 4.0

I getting the following when I try to "test" this WCF: *This operation is not supported in the wcf test client because it uses type MFA_WCF.gridObj()* I should note that this is my 1st attempt to learn WCF and I'm also still learning EF. So I'm sure this is something I did. I'm just wondering if someone can tell me what I'm doing inc...

Azure WCF host causes communication errors when one instance restarts

I have a rather specific issue with a WCF host in Azure. Please bear with me as I describe the situation. We have a WCF host hosted in and Azure worker role using an net TCP binding. We have two instances of this worker role running to provide redundancy. For reasons that are irrelevant to our problem, we force a restart to these ins...

WCF service with two binding types for two different clients.

How can I expose a WCF service so that one client using wsHttp bindings and another client using netTcp bindings can both use the service? ...

Preventing BizTalk from emitting a "To" Soap header in an outgoing request to a WCF BasicHttp service

Using BizTalk 2010 to consume a WCF webservice with BasicHttp binding. My service is rejecting the requests coming from BizTalk. I can see using tracing and soapUI that the reason is the "To" header emitted by BizTalk in the outgoing message: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"&gt; <s:Header> <To s:mustUnders...

Connecting to WCF windows service for silverlight

I am attempting to connect to an existing WCF service from silverlight (I have tried silverlight 4 and 3 so an answer for either would be great) that starts up via a windows service (though I am just running it from a command line project for the time being) rather than IIS and I am receiving the following error which looks as if it is c...

Problem with downloading many files from WCF

I have problem with WCF service. When I am downloading 2 files everything works fine ( less than 1 minute), but when I'm trying downloading more than 3 files there is going something bad . I'm waiting and waiting and nothing :/ Every file has about 1 MB. Dictionary<FileIdentifier, Stream> data = new Dictionary<FileIdentifier, Stream>();...

how to better organize a web service interface

I have a web service that's ~200 methods strong, implemented using .Net + WCF in a standalone service. we're modelling the backing code to use different handlers for different methods, but eventually there's still that one monolithic interface... I used (and loved) RESTful interfaces in the past, especially for the way they break up a si...

Custom IdentityVerifier with BasicHttpBinding

Hi there, I want to implement a custom identity validator in my client for my WCF service, however I want to use BasicHTTPBinding. Can anyone tell me where I set my IdentityVerifier? The only examples I have seen extract a type of SecurityBindingElement from a secure binding (i.e. WsHttpBinding) and set the IdentityVerifier on that, b...

starting and stopping threads from ASP.NET

Hi, I have to start a thread to do some long running task in the background (even if the browser is closed) without waiting for a response on a button click event of a web page and be able to stop that later if user wishes to do so. how can I do this? is it possible to store the id of the thread in database and abort it later? do I need ...

Multiple instances of a self hosted WCF service

I have a service and it is hosted in a Windows application. Within the application, the service is started as below public void Initialise() { BasicHttpBinding binding = new BasicHttpBinding(); ServiceHost host = new ServiceHost(typeof(SampleType)); host.AddServiceEndpoint(typeof(ISampleService), binding, "http://localhost:...

How to handle a gzip message received via IRequestChannel.Request

We are receiving a message from a WCF call as GZip data, but the code is expecting XML. I am working on a PDA that communicates with a WCF web service. The response from the service is SOAP format compressed using gzip. Because we're working in CF3.5 we're having to generate the service client proxy using the NetCFSvcUtil.exe utility p...

WCF Service returning 400 error: The body of the message cannot be read because it is empty.

I have a WCF service that is causing a bit of a headache. I have tracing enabled, I have an object with a data contract being built and passed in, but I am seeing this error in the log: <TraceData> <DataItem> <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Error"...

Query WCF like standard ASMX web service

I've just recently built a Silverlight application that communicates with a server via WCF. The data we communicate back and forth has been seamless and to be honest, quite easy to implement (w/ SL). Unfortunately, I need the ability to request this same information from the WCF similarly to that of an ASMX web service. Right now, I'm...

WCF Concurrency

Good morning. I'm having concurrency issues. I've created a WCF service, and I've tested it to make sure that individual calls work just fine. Now I'm performing some load testing, and I'm seeing super high CPU utilization with long wait times for requests to be completed. My load testing tool is just a console application configur...

WCF config for a service class implementing multiple contracts on separate endpoints

I have a MyService class implementing IService1 and IService2 interfaces. I would like to expose these two contracts on two separate endpoints, like: IService1 exposed on /Service/S1 IService2 exposed on /Service/S2 How would such a config look like? ...

Calling WCF URL directly

Is there a way to call a WCF directly while still developing locally? When I run my WCF project the config file has the following: http://localhost:8732/Design_Time_Addresses/Design_Time_Addresses/MFA_WCF/Service1/ When I input this line as my URL in the browser (adding the method) a blank page shows up... I was hoping for some me...

WCF client with ssl and username/password authentication

Hi, I am trying to connect to service which is accesssible over https and need authentication. The error I get is: Test method TestProject1.UnitTest1.TestReharB2B threw exception: System.ServiceModel.Security.MessageSecurityException: The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The a...

How to get started with WCF Performance profiling

Hello, I'm trying to figure out how to profile a WCF service so I can identify any bottlenecks. I have found a bit of information on line, but nothing that assumes no prior knowlege which is where I'm at. What are recomended FREE tools? - visual studio tools - clrprofiler Here is information I found using vsperfcmd.exe to profile w...

BizTalk Orchestration: Respond with Untyped SOAP Fault

I have a BizTalk 2009 orchestration with a request-response port type that is published as a WCF Basic-HTTP web service. The port has one operation, and that operation has request and response messages with appropriate schemas. After receiving a request on this port, there are a few cases where a fault message should be returned to the...

When to add a service reference?

I'm building a WCF service that will get deployed to a server running IIS. I can add the service reference from the current solution and use it fine. If I deploy the service to that particular machine, will I need to re-add the service to the application that consumes it? ...