wcf

WCF service, response in SOAP or plain XML, how?

Hello guys. I am struggling few hours with this and can't find a solution to the communication problem. My service need to communicate with clients via SOAP or plain XML My service will be written based on WCF framework, however my clients not. Could you show me step by step how to change my service code and configuration in a way th...

WCF Rest services compatible with standard WCF web services?

Hi there, i have been reading a little about REST services and i would love to know more. I wonder if anyone can confirm, currently we have a wcf web service (ending in .svc) and we have many clients accessing (i.e. form linux, max and PC) ... if i was to change my server to use REST then would the clients break? ...

Should I wait for a new version of WCF or should I start learning WCF 3.5 ?

I want to start learning WCF, but I don’t want to realize that by the time I've learn it, that I will have to do it all over again by the arrival of .NET 4.0 So will the upcoming WCF only have some minor changes, which someone familiar with older version of WCF will have no troubles learning in a short amount of time, or will I again ha...

WCF port routing

I have NAT which received incoming WCF requests and changes port number before it hands off to the host however, this is causing problem is there anyway to turn this off or fix? ex) wcf.service.com:80 -> NAT -> wcf.service.2522 !error Thank you. ...

Silverlight 3 + WCF and IIS basic authentication

Hi all, I have the following problem. On my machine I have a SL 3 application, which basically consists of: * Client app (SL) * Web app (.Net 3.5) * Communication with the database handled by WCF The site is hosted on my IIS, with the following authentication set up: * Anonymous access: off * Basic authentication: on * Integrated Wi...

Redirect method call within delegate

I have a protected method in a base class which accepts a Func<T> and then turns around and executes with some added goodness. Example usage: public MyResponse DoSomething(MyRequest request) { return base.Execute(() => this.Channel.DoSomething(request)); } What I'm looking to do is take the func delegate instance and redirect the ...

How do I prevent security overrides in my WCF service config file?

I have to create a WCF service which returns sensitive information to the client. I need to ensure that the security of the service cannot be compromised easily. I'll use WCF's built in security mechanisms to protect the data on the wire by using a wsHttpBinding with certificate security. However, I also want to ensure that the service'...

Round-tripping SubSonic DAL objects with WCF

Question: How do I preserve "dirtiness" of SubSonic objects when they are sent back and forth across a Windows Communication Foundation service? To wit: I have a WCF service call that returns a collection of SubSonic (2.2) objects, like so: // WCF server side public MyObjectCollection GetAllMyObjects() { // Retrieve a MyObjectColle...

WCF Security question?

I have some collegues who have build a WCF Service. Their security settings are the following: security mode="None" transport clientCredentialType="Windows" proxyCredentialType="None" realm="" message clientCredentialType="Windows" negotiateServiceCredential="true" establishSecurityContext="true" security Does it mak...

How can you force WCF to use xs:All instead of xs:Sequence so that SOAP element ordering is irrelevant?

How can you make WCF use xs:All instead of xs:Sequence when it defines complex object types in the wsdl/xsd for a web service? The issue I am having is that xs:Sequence requires that calling applications pass the elements in the soap message in the order specified in the WCF generated xsd (this is alphabetical by default). xs:All (or ch...

Problem with serialization to XML using REST and WCF.

Hi guys. I am having problem with using REST and returning response as an XML. I've created basic service from the template and everything looks nice but when I want to serialize my class and return it as a responce the service returns something else. Take a look: [WebHelp(Comment = "Sample description for DoWork")] [WebInvoke(UriTemp...

WCF: return only necessary properties on json

Because of performance tuning I would like to return only necessary properties. Is there a possibility/workaround? Pseudo / sample code to understand: [DataContract] public interface IMemberOverview { [DataMember] public int Id { get; set; } [DataMember] public string Name { get; set; } } [DataContract] public interfac...

Determine if a WCF ServiceHost has active connections

I have a WCF ServiceHost and I would like to determine if there are any clients connected to it. It is inside a Console application, if that matters. Or if there are events when a client connects or disconnects, that might be helpful too. ...

Silverlight WCF Service, Object Moved

I have a Silverlight application which gets data through a Silverlight WCF Service, and this service was previously functioning. I made some namespace and assembly name changes to the application, and now whenever I try to access the wcf service, I get the following 302 error in fiddler. HTTP/1.1 302 Found Server: Microsoft-IIS/5....

Silverlight application requesting a file from a WCF service

I have a Silverlight (v3) application that is communicating to a WCF service on my server. One of the things the Silverlight application does is request a dynamically generated data file - this data file is created by the service and needs to (ultimately) be saved on the local user's machine via the SaveFileDialog. My question is, what...

How much effort is required to convert an ASMX to WCF web service?

I have 2 web services with about 6 web methods in total, most of the code is ofc sitting in assemblies any way, and the web service asmx is really just calling these assembly methods and returning their return type. How much effort is it to convert the web services from ASMX to WCF? I pretty much at this stage control the only - non w...

Silverlight Identity over WCF Custom Binding

We are trying to establish the identity of the user using silverlight client over wcf service using custom binding. We ave tried numerous configurations etc with no luck. On the wcf services we have looked at the operation context, http context but the identity does not seem to be passed through. ...

WCF - Publisher-Subscriber - Subscription Problem

Publisher Interface [ServiceContract] public interface IPublisherInterface { [OperationContract(IsOneWay = false)] void Publish(MessageClass e, string topicName); } Subscriber Interface [ServiceContract(CallbackContract = typeof(IPublisherInterface))] public interface ISubscriberInterface { ...

Calling webservice from WCF service

I am having an issue consuming a webservice (c#.net) from a WCF service. The error i am getting is EndPointNotFoundException "TCP error code 10061: No connection could be made because the target machine actively refused it" I wrote a unit test to check if i could send a request to the web service and it worked fine [The unit test is usi...

Does XmlMtomReader cache binary data from the input stream internally?

Actually i'd like to know if XmlMtomReader reads mime binary parts from the input stream directly? Or does it store them internally before i call ReadContentAsBase64() method? ...