wcf-binding

How do I create a simple Web Server using WCF without the ServiceHost class?

I've began to learn WCF and wish to understand its internals by creating a simple Web server using channel stacks directly. I have found a lot of theory in the web but I'd like to see a working sample code of receiving and responding an httprequest that I can test using any browser. I'm hoping for something that shows the setup of a cu...

What is the correct WCF net.tcp binding security for this scenario?

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

How to change the default schemalocation in wsdl file of WCf Service?

Hi all, Following is the wsdl file of my service: <wsdl:types> <xsd:schema targetNamespace="http://tempuri.org/Imports"&gt; <xsd:import schemaLocation="http://localhost:3789/VideoUpload.svc?xsd=xsd0" namespace="http://tempuri.org/" /> <xsd:import schemaLocation="http://localhost:3789/VideoUpload.svc?xsd=xsd1" nam...

For wsHttpBinding, netstat -a shows protocoal is TCP

I m using wsHttpBinding for WCF,when i Start my services and go to visual studio 2008 command prompt and run netstat -a command, it shows my servies as listening,but protocol is showing is TCP. My questation is why it is shows TCP still i m using wsHttpBinding ? ...

WCF custom binding issue

I have defined a custom binding in my client and server web.config file, but when I try to connect I get this error, server is running IIS 7 Content Type application/xml; charset=utf-8 was not supported by service http://localhost/contentservice.svc/PairService. The client and service bindings may be mismatched. Server: <system.se...

TIBCO WCF Binding with Topic Selectors

I'm using tibco WCF (.NET ) bindings and i was wondering if anyone know how to add selectors to topics during subscription. Anyhelp would be great. Thanks. ...

Enabling readerQuotas on WCF GZip Encoder Custom Binding

Hey there, I have enabled compression of my WCF service by implementing the sample GZip encoder featured on on MSDN and everything is working great, however now need to transfer my reader quotas across to this binding, as I previously had these customised when I was using wsHttpBinding. This is my GZip binding as declared in my Web.con...

How do I disable security on a WCF's CustomBinding via code?

I have a WCF service that I need to call. When I go through "add service reference" in VS, I get following client config: <configuration> <system.serviceModel> <bindings> <customBinding> <binding name="CustomBinding_IMyService"> <binaryMessageEncoding maxReadPoolSize="64" maxWr...

WCF - How can i make this config cleaner

I am new to WCF ,i have this config file and i really want to make it cleaner. <?xml version="1.0" encoding="utf-8"?> <configuration> <system.serviceModel> <services> <service behaviorConfiguration="warConfig" name="Service.WarService"> <host> <baseAddresses> <add baseAddress="net.tcp://localhos...

WCF Security and config help - base address for https not found

Hi All, I'm getting this error in my event log for a Windows hosted service. Service cannot be started. System.InvalidOperationException: Could not find a base address that matches scheme https for the endpoint with binding BasicHttpBinding. Registered base address schemes are [http]. This service has always worked unt...

Specify the outgoing IP address to use with WCF client

How to define the LocalEndPoint to use by a WCF client when calling a WCF service (if the client machine has multiple IP addresses) ? I have a machine located in a DMZ with two IP addresses, the external IP address can be reached through the firewall via a VPN connection from our webserver, located at an external service provider. On th...

Retrieve configuration bindings WCF

Hi ! I have a service that exposes multiple endpoints. One beeing wsHttp and the other Net.Tcp. Is there any way I can know which one the clients used to make the call inside the service method ? Thanks ! ...

Can we use windows authentication on streamed mode?

Hi pals, I have a WCf service to handle file upload. I have enabled the transfer mode as streamed to send large file of data. I ma bale to achieve till 300 mb. Now i need to provide the security for my service. I have implemented the ntlm authentication for my service. When i hosted it on IIS and enabled the Integrated windows authent...

Impersonation using WCF

Hi, I am trying to expose via WCF Web services, functions that access SQL server (via Entity Framework) using the user's credentials (this is a client/dba requirement because of audit triggers etc. Gave up trying to convince them not to use user's credentials) I am having trouble getting WCF to implement impersonation. (in fact its bee...

Adding Soap Message Header for every request in WCF?

Hi, In my old asmx web services I used to have AuthHeader which contains the UserName & password and the AuthHeader is mandatory for every web method request. User will send his username & password using this AuthHeader and I will validate the request with the Username & password. How can I ahieve the samething with WCF as webservice h...

WCF Mutliple Service Endpoints

I am hosting a WCF Service as a Windows Service. A snapshot below. myHost = new ServiceHost(typeof(AnalyticsService)); Uri address = new Uri("http://localhost:8080/MathServiceLibrary"); WSHttpBinding binding = new WSHttpBinding(); binding.MaxReceivedMessageSize = 2147483647; binding.MaxBufferPoolSize = 2147483647; //binding.Security....

How to pass WCF credentials in single request?

I have this binding: <customBinding> <binding name="b1"> <security authenticationMode="UserNameForSslNegotiated"> <secureConversationBootstrap /> </security> <binaryMessageEncoding/> <httpTransport/> </binding> </customBinding> When I use a sniffer to see the calls, I see that this d...

WCF: How to use AllowInsecureTransport

Within the context of .NET 4 WCF, I am attempting to use the new AllowInsecureTransport attribute so that I can use my custom authentication without using SSL (in our development environment only - we are using SSL in production). My bindings config looks like: <bindings> <wsHttpBinding> <binding name="CustomAuthentication"> ...

Problem in Hosting WCF Service using wsHttpBinding in IIS

I am trying to host my service using following configuration. <system.serviceModel> <services> <service name="Test.MyService" behaviorConfiguration="MyServiceBehavior"> <!-- Service Endpoints --> <endpoint address="MyTestService" binding="wsHttpBinding" bindingConfiguration="WebserviceHttpBin...

Custom processing of CSV file via WCF

I have a project whereby I have a WCF service that I basically want invoked whenever a file is dropped in a certain directory. I've got the basic custom transport channel logic that I saw published on the web that deals with transport over a file. However, there's another point, the content of the file itself. The file is going to be a c...