wcf-binding

Wcf in Medium / Partial Trust (Mosso) - odd problem / config error...

Whew! Ok… I solved my Wcf / Linq errors (and learned a lot – a series of blog posts will follow next weak). Now I need to deploy. We run on the Mosso / Rackspace cloud, and for the moment that environment runs in a partial trust environment. To make it simple, I added a method to my Wcf service that does just about NOTHING. public str...

WCF Service netTCPbinding

I want to user netTCPbinding for that I changed my web config as below : <services> <service name="DXDirectory.DXDirectoryService" behaviorConfiguration="DXDirectory.Service1Behavior"> <!-- Service Endpoints --> <endpoint address="" binding="netTcpBindi...

wcf exposing generics

I have an application where client and server share types, and interoperability is not one of our concerns. I am planning to have a single repository for all web enabled objects, and i was thinking of a generic interface for my exposed service. something like T GetObject(int id) but wcf doesnt like it since its trying to expose its sch...

Security settings for this service require 'Anonymous' Authentication but it is not enabled for the IIS application that hosts this service.

I am using IIS V5.1. Integrated windows authentication I have a following web config: <system.serviceModel> <bindings> <wsHttpBinding> <binding name="wsHttpEndpointBinding"> <security mode="Transport" /> </binding> </wsHttpBinding> </bindings> <services> <service behaviorConfigura...

Issue while reading a xml file in WCF service.

Hi, WCF service has one method ( Let's say TestMethod) in which I try to create a File Stream like this : System.IO.FileStream fs = new System.IO.FileStream(@"D:\Test.xml", System.IO.FileMode.Open); My Client and Service is on the same solution. When the Client makes a call to TestMethod ( Exposed in Web service ) it wil...

IDispatchOperationSelector question

Hello, i built a service with a custom operation selector, the selector simply looks at a specific element in the message body ( and ignores the action) to specify which method to call on a contract. This works fine, and i can see that the server code is being invoked now, however the client throws an exception saying that the action o...

WCF binding -wsHttpBinding uses a session?

In a previous thread one of the respondents said that using wsHttpBinding used a session. Since I'm working in a clustered IIS environment, should I disable this? As far as I know, sessions don't work in a cluster. If I need to disable this, how do I go about it? ...

web reference to WCF service using wrong endpoint

I've got a WCF service hosted on my server. I've set up 2 seperate endpoints on the service, 1 wshttpbinding for communicating with .net 3.5 service references and 1 basichttpbinding for commuicating with all other web references. When i reference the service as a service reference in a .net 3.5 project everything works fine. The servic...

Service is not accessible using netTcpBinding?

This is the configuration file while hosting the service, here i hosted service using ip 127.0.0.1:36345, here service is not accessible using netTcpBinding when i hosted the using the exact ip of server (192.168.1.47:36345) it works.. what could be possible reason and solution? <services> <service behaviorConfiguration="metadata...

What are the various methods of hosting a WCF service?

What are the various methods of hosting a WCF service? ...

WCF to Java endpoint/contract issue

Getting error with Could not find endpoint element with name 'CaseJacketPort' and contract 'GrandJuryService.CaseJacket' private void InitProxy() { m_Proxy = new DivisionAssignmentJSS.GrandJuryService.CaseJacketClient("CaseJacketPort"); << error here From my App.config: <client> <endpoint address="http://172.24.8.125:8080/gr...

Profiling bandwidth and speed of different WCF bindings

I'm interested in knowing the different bandwidth and performance characteristics of the different WCF bindings (basicHttp, WSHttp, nettcp, etc.). Aside from writing a service and exposing the different endpoint bindings that we can call to exercise, how could I measure these metrics? In particular, I need to know how bandwidth and per...

Allow nonencrypted response from server using WCF

I'm connecting to a webservice using WCF. I can authenticate on the server correctly, send my request, and get a signed response back. The only thing is that the body of the response isn't encrypted. Ok, I'm fine with that. It's not my service and not my call how they do things, I'm just writing a client. The issue is that WCF keeps gi...

Url registration issue with WCF when Http binding is used

I'm trying to host two WCF services in one application. I want them to share the same BaseAddress but have their own URLs something like: net.tcp://localhost:1234/service1 and net.tcp://localhost:1234/service2 The following config allows me to do that: <system.serviceModel> <services> <service name="VanillaWcf.Shared.MyServ...

WCF service hosted in IIS with netTCP binding

I have a WCF service hosted in IIS7 with netTCP enabled. This is my web.config in %apppath%\ , where the SVC file is. <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.serviceModel> <services> <service name="Search.Querier.WCF.Querier" behaviorConfiguration="SearcherServiceBehavior"> <host> <...

WCF IIS hosted service multiple Service Contracts implemented by a single service - how do I share uri between endpoints via config

I have a set of Service Contracts which split up my service interface into chunks of related functionality. I am currently implementing all contracts using a single service class (may want to split these later but for now the single service class suffices). I am trying to use configure the endpoints using a config file (as opposed to vi...

Do WCF mex endpoint types have to match the service endpoint type?

Here is the web.config for my WCF endpoint: <services> <service behaviorConfiguration="SearchQueryServiceBehavior" name="Search.Querier.WCF.Querier"> <endpoint address="mex" binding="mexHttpBinding" name="mexHttpEndpoint" contract="IMetadataExchange" /> <endpoint binding="netTcpBinding" bindingConfigura...

WCF WebHttpBinding Testing Tool

I'm developing WCF RESTful Services and looking for a testing tool/invoker for calling these services without writing client code. Can anybody refer me to a tool for invoking RESTful services especially services using the WCF WebHttpBinding? ...

hosting generic service in IIS

Hello, I have a generic service which i can host in an exe and call from another .net app, but since web services on IIS are loaded on demand, i cant host it an web project. is there a way to tweak the wcf stack to read the url ( in which i can pass the type information) and invoke the service ? i tried using servicefactory, but its m...

Custom Binding Message Secuity

I'm reviewing an applications WCF security, and one of the bindings is a custom binding to achieve compression. The other bindings are standard wshttpBindings using message level encryption using a server certificate. Custom binding <customBinding> <binding name="Elements.Foundation.CustomHttpCompression"> <security authentic...