wcf

Pass a JSON array to a WCF web service

I am trying to pass a JSON array to a WCF service. But it doesn't seem to work. I actually pulled an array [GetStudents] out the service and sent the exact same array back to the service [SaveStudents] and nothing (empty array) was received. The JSON array is of the format: [ {"Name":"John","Age":12}, {"Name":"Jane","Age":11}, {"N...

WCF Rest services for use with the repository pattern?

Hi there, I am considering moving my Service Layer and my data layer (repository pattern) to a WCF Rest service. So basically i would have my software installed locally (WPF client) which would call the Service Layer that exists via a Rest Service... The service layer would then call my data layer using a WCF Rest Service also OR maybe...

WCF method that updates object passed in

Am I correct in thinking that if I have a WCF OperationContract takes in an object and needs to set a property on that object so the client gets the update, I need to declare it to return the object. e.g. given a datacontract: [DataContract] public class CompositeType { [DataMember] public int Key { get; set; } [DataMember...

WCF Rest Service: Tool for creating strongy typed classes via the help pages?

Hi there, can anyone tell me if there is a tool for creating the strongly typed classes (available via the schema) - i suppose similar to Paste as XML type .. But i was hoping for a tool that i could run to automatically update the classes automatically when there are changes Does anyone know if something like this exists? ...

Silverlight and Active Directory Interaction

I am planning to familiarize(read teach) myself with Silverlight by building an in-house app for managing our employees. I, obviously, would need this to interact with Active Directory on some level. What are my options? Has anyone tried this before? I am currently going to explore using Services(WCF???) to do the AD interaction ...

Why am I getting: InvalidOperationException: Failed to map the path '/app42/App_Code/'.

I've been working on a little Silverlight utility which calls a Silverlight web service. It works from my dev machine (XPsp2). I've tried publishing it to a 2008 R2 IIS 7.5 server and it doesn't work when trying to contact the web service. So I've tried using the WcfTestClient to connect to the web service. That gave an error. So I ...

Load Balance WCF and Share a Remote MSMQ for High Throughput

After a ton of reading in books and on the web, I have noticed hints of information that WCF and MSMQ can be used in achieving high throughput. The information I have seen mentions using multiple WCF services in a farm that reads from a single MSMQ queue. The problem is that I have found paragraphs here and there that mentions that hig...

In WCF , when should a TCP binding be used?

In WCF , when should a TCP binding be used? I know the scenario when web browser is the WCF client. In that case HTTP is used. But what are the scenarios for TCP ? Thanks for ur replies. ...

problem with addressfilter in WCF

I've build my own WCF channel with all necessary stuff (like encoders, bindings, etc) to use it with ServiceHost. I just want to build the "channel stack" making no custumizations at "Service Model". To acomplish this, my encoder returns perfect ServiceModel.Messages with a XML infoset just like other channel does. Lets assume the fol...

In WCF how to remove bindings from the metadata?

The WSDL generated by WCF is describing all my bindings, and I want it to describe only the wsHttpBinding. I want it because a PHP client can't parse the WSDL if it contains unknown bindings. There is a way to do that? ...

How to consume WCF WebServices from PHP?

I have to consume a WCF WebServices but the WSDL contains bindings that PHP doesn't support also. SOAP-ERROR: Parsing WSDL: PHP-SOAP doesn't support transport 'http://schemas.microsoft.com/soap/named-pipe' How to bypass this problem? ...

svcutil, WSDL, and the generated interfaces not being sufficient for implementation

I have a WSDL file defining a service that I have to implement in WCF. I had read that I could generate the proxy using svcutil from the WSDL file, and that I could then use the generated interfaces to implement the service. Unfortunately, I can't quite seem to find a way to have the interfaces contain the correct attributes to expose t...

WCF duplex communication

Is duplex communication is possible in WCF? ...

adding a token onto a webservice or wcf call via soap extender

I have a soap extender which I am using to log the http soap request and response for each webservice that is called from my application as a comms log. I would like to inject a token on the 1st call (possibly the 1st call to invoke the service that is being logged) and then be able to track all subsequent webservice calls run in the sa...

Extending WCF Data Service to synthesize missing data on request

I have got a WCF Data Service based on a LINQ to SQL data provider. I am making a query "get me all the records between two dates". The problem is that I want to synthesize two extra records such that I always get records that fall on the start and end dates, plus all the ones in between which come from the database. Is there a way to...

Performance Counters in Server Development

Dear Gurus, All of you agree with the value of using Performance Counters for server applications. I would like to know how to implement these using C#. Usually performance counters have the following attributes: They are shared/global Writing requires locks to ensure synchronization Reading sometimes requires locks too Is it bett...

Multiple Service Address Configs in WCF Silverlight App

My team is building our first significant Silverlight application, using a 3 layered architecture and WCF. We have developed about 10 separate WCF services in the middle layer so far, and this number is only going to grow. Generally, the presentation layer (ie. the Silverlight app) is pointing to the services as hosted on our dev serve...

Is it possible to change WCF service without regenerating & recompiling client proxy?

Let's say I have a WCF service which has a method returning object Person. In one of the clients of this service, I can add service reference to the service and start using its method. Now, let's say the Person class is changed on the server, having a new DataMember added. Other clients will make use of this new DataMember, but my c...

WCF fails to deserialize correct(?) response message security headers (Security header is empty)

I'm communicating with an OC4J webservice, using a WCF client. The client is configured as follows: <basicHttpBinding> <binding name="MyBinding"> <security mode="TransportWithMessageCredential"> <transport clientCredentialType="None" proxyCredentialType="None" realm=""/> <message clientCredentialType="UserName" algorithmSui...

ASP.net and WCF some clarification on "overriding"

Recently I faced few interview questions.The interviewer asked the to give the detailed answer. 1)Can we override a WCF service (Its is not OOPS overriding) ?.Explain the reason on either end. (WCF Related). 2)Can we override Page events (Page_Load())?.Explain reason.(ASP.NET related). 3)What is the primary responsibility of Pre_Init...