wcf

WCF Timing out from Windows Services but not Web Applications

Hi All I am currently having an issue calling a WCF service from a windows service. My Application Solution looks like this. Web Administration Console (Web Project) Central Control (Windows Service) WCF service so the Web Administration Console can connect to it and configure it Several Calls to use WCF on the Node (Window Service) ...

custom serialization converters for a WCF service

We are currently using a .asmx web service method which serializes our object to Json to be returned to the client and consumed by MS Ajax code. For some members of the object, we use custom converters via classes that derive from JavaScriptConverter and override the Serialize method. We "wire up" these custom converters in our web.con...

To go with traditional webservice or use WCF in VS2008/C#

I have an opportunity here to get into WCF but have a limitation on time on deliverable. I can provide my services in iteration and if WCF is the way to go I can buy extra time to get over the learning curve. What is the norm now? Is WCF the way to go? ...

reference methods from interface through a WCF service

Say I have the following: namespace SomeProject { public interface ISomething { string SomeMethod(); } } namespace SomeService { [DataContract] public class CompositeType { [DataMember] public ISomething Something { get; set; } } } Now, in my calling code I want to be able to do thi...

How can I communicate with WCF from Delphi using Named Pipes Binding

Can I use Delphi 2007 to communicate with a WCF service using the netnamedpipebinding ? If so, then how? ...

System.ServiceModel.Security.MessageSecurityException occuring under ExceptionShielding

We are using the Enterprise Library 4.1 Exception Handling Application Block's ExceptionShielding feature in combination with a custom RoleProvider with our WCF services. When the RoleProvider determines an user is not in a role and returns false from the IsInRole method, the following exception is occurring: System.ServiceModel.Securi...

Implementing Linq-to-Sql Transactions Through WCF - Part II

I started here: http://stackoverflow.com/questions/753599/implementing-linq-to-sql-transactions-through-wcf Since then I came to the following. I am using basicHttpBinding for legacy, and my WCF client is unmanaged C++ (gSOAP). So I am using ASP.NET Session and enable aspNetCompatibilityMode on WCF. This works, so now I can handle sessi...

Reuse a client class in WCF after it is faulted

I use WCF for a client server system. When I add a service reference to IService on the server, a proxy class ServiceClient is generated. My code looks like the following: ServiceClient client = new ServiceClient(); try { client.Operation1(); } catch(Exception ex) { // Handle Exception } try { client.Operation2(); } catch(Ex...

What are the best practices for consuming REST based WCF services from PHP?

We have a website built in PHP and are trying to enable it to talk to couple of services that are going to be written in WCF and follow REST Style architecture for web services. Anybody have any best practices? issues? ...

wcf datamemberattribute casing.

Hello and thanks for any assistance In my WCF Service I have a property declared as such: public string PropertyName { get { return propertyName; } set { propertyName = value; } } In my Client, when i add a service reference to the service, the imported .cs file has the same property, except it has lost it's casing, as such: ...

Reliability and WCF

So here is the scenario... I have a sharepoint content type that calls a wcf service to update data in another database. The problem comes what happens if the call times out? This process happens during check out and while I may get a failure of the SP side while waiting for the call to finish, the service end may succeed. Any ideas...

How to create a trimmed service in WCF

I've got a WCF service with lots of method and DataContracts. It is usually consumed by large application "A". I want to create a tiny application "B" which will use the very same server but only a few methods from the service. I want to reduce the size of the XAP, and since the client is using a fraction of all methods exposed by the se...

What is the standardized way to pass complex types in WCF?

I am a newbie in WCF, currently I am developing a TCP WCF service and I am not sure that I understand passing parameters correctly or not so I recommend you to comment and give a standardized way. To get things clear I developed a small service for testing purpose that has single method and depends on an external .Net dll that exposes ...

WCF: What is a ServiceHost ?

As I'm currently learning to use WCF Services, I am constantly encountering tutorials on the internet which mention using a ServiceHost when using a WCF Service. What exactly is this ServiceHost ? In my current project I am using a WCF Service and having a reference to it from my app and whenever I want to consume it from my app I ...

wcf architecture design. re: return values.

Hello and thanks for your opinion. I am creating a webservice. This webservice will accept a customer and the customers accounts along with a couple other related objects and attributes and such. When the webservice recieves a request, I attempt to process it. If there is no error I simply just return. If there is an error, I throw ...

what files to give client for .wsdl

Hello, thanks for any assistance. I'm creating a wcf web service for an external client. The client is requesting a copy of the wsdl. I currently am waiting on being able to provide the client with access to the service. when I go to my local webserver running the service (http://localhost/Services.svc?wsdl) I am shown the wsdl, the d...

wcf faults

Hello, and thanks for any assistance. I'm confused on how I should return errors to a client using SOAP. I have a wcf service, but I'm not sure what technology the client is using, so I'd like to stick to the SOAP specification. As far as I've read, Fault messages seem to be the best way to handle this. I can see my service having m...

How to set up SSL in a load balanced environment?

Here is our current infrastructure: 2 web servers behind a shared load balancer dns is pointing to the load balancer web app is done in asp.net, with wcf services My question is how to set up the SSL certificate to support https connection. Here are 2 ideas that I have: SSL certificate terminates at the load balancer. secure/unsec...

Consuming a method not mentioned in OperationContract

I have a WCF services. Which has two methods, say Get and Save. I want to expose only the Get method to the third party who will be consuming the service while my application should be able to consume both Get and Save. Is there a way to consume a method not in OperationContract? I am thinking of verifying the host name of the request a...

WCF: "Failed to open System.ServiceModel.Channels.ClientReliableDuplexSessionChannel"

I currently have a WCF Service with a CallBack Contract (duplex), and when I use the application that makes use of it on my computer everything works fine, but when I try it from a different computer, it doesn't connect. These problems started occurring once I switched to using this wsDualHttpBinding (for callbacks) because when I used ...