This is a major issue for me. In earlier times, web service clients could simply use EnableDecompression = true and all was good, but why did Microsoft not add something similar to WCF?
I really NEED gzip compressed responses from my WCF services (and they need to be http... legacy issues, as usual... you know...).
...
Hi guys.
I have a WCF service which is hosted in a Windows Service and has net.tcp endpoint. The clients are in the same LAN (Workgroup) as the service but they don't have the server's Windows user accounts.
PS: When I set the Security.Mode to None in both client and server, I receive the following error:
The requested upgrade is no...
Following the instructions here: http://msdn.microsoft.com/en-us/library/ee517277.aspx, I am trying to set up a WCF service to use WIF.
When I try to instantiate the ServiceHost, the following exception is thrown:
The type 'Microsoft.IdentityModel.Configuration.ConfigureServiceHostBehaviorExtensionElement' registered for extension '...
Hello,
How can I set a default value to a DataMember
for example for the one shown below:
I want to set ScanDevice="XeroxScan" by default
[DataMember]
public string ScanDevice { get; set; }
...
Hello,
I built a project as descripted in this URL:
http://msdn.microsoft.com/en-us/library/ms734784.aspx
I used the app.config version. But using the code-Version does not change anything (the timeout-error still occurs).
To create the ServiceHost I used the following code:
this.serviceHost = new ServiceHost(typeof(Calculator));
//...
Is it possible to control the "name" of a WCF return element? For example, I have a WCF method PerformAction which returns an ActionResponse. The ActionResponse type looks like this in the WSDL:
<xs:element name="ActionResponse">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="PerformActionResult" nillable="...
Hello,
I'm implementing REST web services by means of the WCF REST Starter Kit.
I get the request in a System.ServiceModel.Channels.RequestContext.
Specifically: the interceptor starts this way: Public Overrides Sub ProcessRequest(ByRef requestContext As RequestContext)
If the request includes the Content-MD5 header, I must validate ...
I get this intermittent WCF error:
This collection already contains an address with scheme http. There can be at most one address per scheme in this collection.
Parameter name: item
I tried various solutions by from googling around and from stackoverflow and they work for a while until the error shows up again and then I attempt anoth...
There is a Silverlight (4.0) application that is calling to WCF-service. During 1st call to WCF-service some data are get from HttpContext.Current.Session object.
During 2nd call to WCF-service HttpContext.Current is null... Do you have any idea why (and how to fix that)?
Current settings:
Options "aspNetCompatibilityEnabled" and "ru...
I've setup an example in which a client calls a WCF service that has a Callback registered. It all works perfectly, but I want to test the scenario in which the client is closed, but the Service is still doing it's thing. Then when it comes time for the Service to call back to the client, I get an error because the client ain't there a...
I can understand that WCF is in general better than Remoting, but the two seem quite different to me. MS make this pretty picture to show how great WCF is (or perhaps how poor the other techs are to only check one box each):
But, WCF is centered around SOA and I don't think it's correct to assume every networked application wants to ex...
Hi,
after hours of research I still haven't found any answer.
I'm trying to send a DateTime as a Parameter to a Method exposed over a WCF RESTful Service with JSON encoding.
The request looks like this:
POST http://IP:PORT/LogService/json/GetLogEntriesByModule HTTP/1.1
Content-Length: 100
Content-Type: application/json
Host: IP:PORT
Co...
Hi All,
I am new to Web/WCF/Services - so bear with me :)
I am trying to analyse the code-flow in a .NET application but I have a hard time understanding the reasoning behind using the following approach when it comes to exposing services :
Now, in the application, I have a C# Class Lib Proj which has a C# Class Library project call...
I get the following output error when trying to generate a proxy for a WCF Service using both PHP and Java:
with Java I am using wsimport with Jaxws and JaxB
with PHP I am using wsdl2php
The error that I get is the following:
[ERROR] duplicate "message" entity: "IWcfRequestProcessor_ProcessRequests_InputMessage
line 1 of http://xxxx...
Let's consider this chat service:(the entire application may be found here)
[ServiceContract(SessionMode = SessionMode.Required, CallbackContract = typeof(IChatCallback))]
interface IChat
{
[OperationContract(IsOneWay = false, IsInitiating = true, IsTerminating = false)]
string[] Join(string name);
[OperationContract(IsOneW...
I can't see any template to start a WCF project (I do see ones for WPF amongst other things). Is this because I don't need a template, or because it's missing in Express, or because I'm looking in the wrong place?
...
I've got a WPF windows client that calls a WCF web service. The user is already logged in on the windows domain before starting the application and the WCF service uses windows authentication.
I want the WPF client to use the WindowsPrincipal of the already logged in user when calling the WCF service. I do NOT want to create a new Netwo...
Microsofts's WCF is easy to work with when you create Web services where each message has it's own Web method. WCF generates all of the WSDL and everything is easy.
What I want to do is have one Web method that accepts multiple different messages (I don't want to add a mew method every time I add a new message type). The messages themse...
Hello
I've the following doubt. I've a page "MyPage" and i've declared few dictionary objects in the page class.
My doubt is
If i declare the dictionary as a private non-static object i'm not able to use it across the functions in that page class (the object is getting nulled)
But if i declare the dictionary to be static i'm able to ...
Hello all,
I've written an WCF-based restful web service as a Windows service and I am accessing it via raw HttpWebRequest from a console application. It works great when I set everything up for plain http. But now, I'm trying to set it up for SSL access using the ASP.NET role provider. Now when it executes request.GetResponse() and it...