wcf

How Do I Avoid SSL Certificates during Development for a WCF endpoint that will be secured during Production

We are developing a number of WCF services. requests will cross a domain boundry; that is, the clients are running in one domain and the servers handling the requests are in a different (production) domain. I know how to secure this link with SSL and certificates. We will aks the users for their usernames and passwords on the product...

IOutputSessionChannel and IInputSessionChannel in wsHttpBinding, why it doesn't work ?

Does somebody know why the output of this code is only : "Message Sended" ? The thread of the input channel wait on channel.Recieve(). I have not this problem using basicHttpBinding with IRequest/ReplyChannel ! static void Main(string[] args) { WSHttpBinding binding = new WSHttpBinding(); binding.ReliableSession.Enabled = true...

Are calls synchronous in WCF?

I'm writing an App using WCF where clients subscribe to a server and then updates get pushed back to the clients. The subscribers subscribe to the server using a DuplexPipeChannel calling a Subscribe() method on the server. The server maintains a List<> of subscribers and when there is data to push out to the subscribers it calls a Pus...

Can I host a WCF service with NetMsmqBinding in root "/" application of an IIS7 site?

I have created a WCF service with NetMsmqBinding, and hosted it in IIS7 using Windows Activation Service (WAS). Current (works perfectly): Hosted in IIS at: http://localhost/MyService/MyService.svc With the service endpoint address: http://localhost/private/MyService/MyService.svc And the corresponding queue: .\private$\MyService/M...

WCF Contracts from Entity Framework?

I've been coming up with a lot of dead ends on this question. Supposedly, .NET 3.5 SP1 has Support for ADO.NET Entity Framework entities in WCF contracts. But when I look for solid info on it I'm not getting a lot of answers. I found this one snippet on an MSDN thread. Does anyone have any experience with this? What happened to the [...

How do I get a reference to a WCF service object from the code that creates it?

I'm modifying the code in this tutorial to build some basic subscribe push wcf client/server classes, and I've just hit a bit of a brick wall. The server class in the tutorial is created using the following code: class Program { static void Main(string[] args) { using (ServiceHost host = new ServiceHost( typeof(...

How do I get intellisense for WCF Ajax Services?

I've finally got Intellisense working for JQuery by applying patch KB958502 to Visual Studio 2008 and including this line: /// <reference path="JQuery\jquery-1.3.2.js"/> at the top of my .js files. Now I'm trying to figure out how to get JavaScript intellisense for the client proxies generated by the ScriptManager's ScriptReference e...

Asp.net Self Hosted WCF Service WSDL with relative paths

I am working on a WCF application that will be deployed to various servers along the way and I would like to not have to remember to change the app.config every time I do a deployment. At first, my app.config serviceModel section looked like this: <system.serviceModel> <serviceHostingEnvironment aspNetCompatibilityEnabled="false" /> ...

Deploying a WCF Service

I will be deploying my first WCF service in the next few days on a Test server (MS Server 2003 O/S). This particular service will do nothing more than run some queries against a SQL Server 2005 (most likely on the same box) and return the values to the caller. My question is, unlike the "classic" web services, with WCF I now have cho...

WCF service is running at computername.mydomain.local/service.svc, why?

Hi, My WCF service running on IIS7 seems to resolve at: http://computername.mydomain.local/service.svc My web.config doesn't reference any url. What could be the cause? ...

Syndicating RSS 1.0 using WCF

Using the new syndication API, is there any smooth ways to read RSS 1.0 feeds? found http://www.clariusconsulting.net/blogs/kzu/comments/116679.aspx with an explination of how to read atom 0.3. Do we realy need to create our own xslt to transform the feed from RSS 1.0 to RSS 2.0? ...

Passing data from a jquery ajax request to a wcf service fails deserialization?

I use the following code to call a wcf service. If i call a (test) method that takes no parameters, but returns a string it works fine. If i add a parameter to my method i get a wierd error: {"ExceptionDetail":{"HelpLink":null,"InnerException":null,"Message":"The token '\"' was expected but found '''.","StackTrace":" at System.Xml.Xm...

WCF Caching Strategy - Including Dependancies

I would like to ask people's opinion on methods and strategies for introducing Caching to WCF. In particular what i am most interested in, is injected SQL Cache Dependencies. Once a web application is copied to multiple application servers I want to synchronize the cache efficiently. I am currently looking at the WCF Rest Starter Kit...

Hooking into a WCF operation

I need to hook into the WCF operation process to execute some code right before and right after each operation. Some context: I already have a custom servicehost, servicehostfactory and servicebehavior all my services are based on a common base class I've been snooping around and I think using a IParameterInspector would be the bes...

CategoryAttribute problem passing through WCF

Hi, I have a problem with WCF seemingly not including attributes such as Category when passing entities around. I have a class wrapped around an EF entity, used to populate a property grid on a thick client. I am trying to retrieve information from the server, using WCF, and to replicate the property grid on the client side. I have ...

Supporting XSDs with attributes in WCF

Hi, We have some XSDs in our project that define types that use attributes, as well as elements, to specify property values, e.g.: <Instrument name="blah"> </Instrument> I use these XSDs to define a schema used by a WSDL, but when I run it through schemagen, the generated code is unwrapped. For example: public interface InstrumentSe...

How can you control WCF serialization so it uses attributes instead of elements?

If I have a class marked as a DataContract and a few properties on it marked with DataMember attributes I can serialize it out to XML easily, but it would use an output like. <Person> <Name>John Smith</Name> <Email>[email protected]</Email> <Phone>123-123-1234</Phone> </Person> What I would prefer is attributes, like... ...

405 method not allowed error when trying to post to web service

Hello all, I borrowed the following code to try to make an ajax-enabled WCF service work since I kept getting the 405 method not allowed error: $('#btnSave').click(function(e) { $.ajax({ type: "POST", url: "AjaxWcf.svc/ConnectionTest", contentType: "application/json; charset=u...

Strange TimeoutException in WCF

I have a web application that is talking to a WCF service hosted within a Windows Service. Every once in a while I will start seeing EventLog errors that stating that the request to the WCF service timed out after 1 minute. I understand that error (although why it would take that long to respond is a mystery). The error that really co...

How to require a valid username + password using WCF (without Transport Security)

Similar to this question, I need the ability to require username + password w/out transport security. But in my situation the actual IIS server doesn't have SSL, but the proxy in front of it does. This is where WCF has an issue - because the box hosting it won't allow this type of security w/out SSL. So in short - do I need to write m...