wcf

WCF: How to connect to service by IP:Port

I need to test WCF service, but have only one computer, so my service and client are running on the same machine. Here is the App.config of WCF Service: <host> <baseAddresses> <add baseAddress="http://localhost:8000/MyService"/&gt; </baseAddresses> </host> <endpoint address="" binding="wsDualHttpBinding" contract="...

Web Chat Application - ASP.NET/Jabber/Ajax/WCF/Comet/ReverseAjax - Issues Faced - Seeking Insights

Hello I've been trying to build a web based chat application for the past three weeks and i'm facing issues with whatever route (programming technique/technology) i take to build it. I've explained the issues i've experienced with all of'em below. Kindly provide whatever insights you have in this. ASP.NET-AJAX First issue is that it ...

how to call wcf service from Iphone

I want to develop a system that a Iphone application can access my database through the wcf service. I am new wcf services and i want to know which service should i make (rest or ?) and why and they communicate with each other? ...

How do I find the subjectdistinguishedname of a x509 certificate?

I am trying to use the X509FindType.FindBySubjectDistinguishedName option and I am not sure where to find the value for the findValue property in my config. http://msdn.microsoft.com/en-us/library/system.security.cryptography.x509certificates.x509findtype.aspx ...

How to port WCF/SQL app to (SQL) Azure cloud?

I've got a local app, consisting of a windows service providing the middle/business tier for a SQL Server database (c#, .net 4, SQL Server 2008 R2) Now I'd like to port this app to Windows Azure Cloud (both service and SQL database). Is somewhere a document stating the differences between a local WCF service and a windows Azure Service,...

Javascript proxy URL generated by .SVC file does not work under SSL.

I have an ASP.Net web site deployed in IIS 7.5 with a file Cart.svc (used for Javascript access from the browser). The javascript renders fine under non SSL but SSL causes it to halt. However, if you take the /js suffix off, it works, even under SSL. So it looks like there IS a process listening on SSL, it just does not like the /js suf...

Encapsulate a data access layer with WCF or WCF Data Services

Are there scenarios where it makes sense to encapsulate a data access layer (of a ASP.NET webapplication) with WCF or WCF Data Services ? Makes it sense to use a Service inside the application ? ...

IDisposable and WCF

Hello, At work, I've found a helper class to manage WCF Services which implements IDisposable and has a ServiceAgent that derives from System.ServiceModel.ClientBase. The Dispose() method closes all the opened WCF services. The helper exposes methods that wraps calls to the methods of the ServiceAgent. Each method is build on that patte...

WCF Transport security with peertrust and self-signed client certificates

I'm been struggling with WCF for a while now and I can't seem to figure it out. I have a self-hosted WCF service with SSL enabled (using a signed certificate from a self-signed root CA), so far so good. The service is for business-to-business communication so certificates seemed to be the best solution. (I'm using the WS binding at the ...

Why is my application pool hanging?

I have about 16 sites inside a single application pool, three of these are WCF services. Just to explain the scenario I will give an example: WCF-Service1 calls WCF-Service2 which in-turn calls WCF-Service3 All these three services are in the same application pool. When WCF-Service2 calls WCF-Service3 everything in that application po...

Turn off WCF SOAP Service for Maintenance and provide friendly message

I'm hosting some SOAP services with WCF. How can I turn off these services via config for the purposes of maintenance, etc., and provide a friendly message to the service consumer with something like "The service you've requested is down for maintenance."? ...

WCF Message Security With Service Certificate Only

I'm new to WCF, and wanted to know if it is possible to do Message Security, where I use a x.509 certificate for the service only, and for client security do windows credentials, is this acceptable, does it work? Tried searching the web, but either no discuss on this approach exists, or I have put the wrong wording in my google search, ...

What makes WCF ServiceHost crash?

I have a Windows Service that exposes the same interface on 4 ports using WCF. The addresses are: net.tcp://localhost:1200/IContract net.tcp://localhost:1201/IContract net.tcp://localhost:1202/IContract net.tcp://localhost:1203/IContract This service is in production for a long time and there are times it breaks and I cannot even teln...

Unable to do a 'GET' on WCF Service

I have a simple WCF contract that contains both 'GET' and 'POST' operations. I have the service running on localhost. I am able to type the service address into my browser and see the service response values. When I try to do the same thing from C# code, I get the error "There was no endpoint listening at...." message. I can however c...

questions about using MEF in a WCF service

I'm just starting to play with MEF and have a couple questions. 1) I wrote a WCF service that takes in some xml and passes the xml off to a parser. The parsers are composed using MEF. (metadata in the xml lets me determine which parser to use). I can add a new parser, and support new XML, by just dropping the dll in a directory. That pa...

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

How do I deploy code with WSE3.0 dependencies to Windows Server 2008?

One of our ASP.Net projects has some dependencies on Microsoft WSE 3.0 However, we're migrating the project to Windows Server 2008, which does not support WS E3.0. So I need to refactor the code to remove the dependency to WSE 3.0 but still maintain its functionalit. The code is simply adding a security token to the web context and then...

REST methods not accessible when hosting wcf service in IIS

I have a WCF REST service that exposes a method in class GreetService: [ServiceContract] public class GreetService { [WebGet(UriTemplate = "greet/{name}")] public String GreetName(string name) { return "Hello " + name; } } Also, I registered a route in Global.asax: RouteTable.Routes.Add(new ServiceRoute("Greet...

Load balanced server best practice with WCF

Hi there, I'm working on creating a service using WCF: custom binding, SSL, soap, ... Now is hosted in a shared hosting, but I have to create some documentation to suggest best practices in order to support a lot of traffic in the future. I have looked for some documentation on how to do this, e.g. Service factory in codeplex, but it's ...

Unhandled exception with Silverlight Application when running from a deployed site.

I have a simple Silverlight application that consists of a DataGrid and a web application, along with using a WCF Service to get the data. Everything works great when running it from the Visual Studio DevServer. Also when running from the deployed IIS application, meaning when I use "http://localhost/SomeApp.aspx" it renders the data per...