wcf

facebook chat in silverlight

I have a silverlight application and i want is that my application should ask for the user name and password and the client should be able to start chat with their facebook friends.Could this be done? and if so then is there sample code available ...

REST friendly WCF Endpoints in .NET 3.5

I wanted to create REST friendly URLs with my WCF service endpoints by avoiding the use of .svc. I know I can accomplish this by using IIS rewrite module to append the .svc. Does anyone else know of a better way to do this? Please note that I am limited to .NET 3.5 and cannot use .NET 4.0 (so can’t use System.Web.Routing in .NET 4.0) ...

How to find a source IP adress in a WCF trace file using (Microsoft Service Trace Viewer) ?

I have a WCF web service with tracing enabled (following these guidelines http://msdn.microsoft.com/en-us/library/aa702726.aspx). The problem is that I cannot find the source IP (incomming client request) address anywhere in the trace file. Also documentation on this topic is pretty vague, so if you can provide any links to some nice res...

Localhost issue with Net.Msmq endpoints on Windows 7

I've just moved my development to a Win 7 64-bit machine and am having some wcf endpoint issues. As far as I can see the net.msmq endpoints that point to localhost do not work. The messages do get sent but appear in an outgoing msmq queue that constantly says 'Waiting to Connect'. As far as I was aware msmq messages sent to a private q...

Which files under Service References belong in source control. (Visual Studio)

Hi, I am new to both WPF and WCF, and have a WPF app that has a service reference to a WCF one. I have all sorts of files created under Service References/MyService. I am not so sure which need to go into source control and which don't. I have a .disco, a .datasource, a .wsdl, 3 .xsds, 2 configuration.svcinfos, a Reference.cs, and a Ref...

WCF: referencing a service from script manager issue

I'm working from a project on localhost:2971 and in the master page i want to include an asp:ScriptReference to a wcf service i am hosting in IIS at localhost:5152 <Services> <asp:ServiceReference InlineScript="false" Path="http://localhost:5152/CostService.svc" /> </Services> then i attempt to call: var service = new Sandwi...

Windows Service Starts then Stops

I have a Windows Service that I inherited from a departed developer. The Windows Service is running just fine in the QA environment. When I install the service and run it locally, I receive this error: Service cannot be started. System.InvalidOperationException: The requested Performance Counter is not a custom counter, it has to be ini...

Passing a value into Ajax enable WCF web service with jQuery.

Hi, I have created an Ajax enabled WCF web service that contains this simple method: [OperationContract] public string ParameterizedConnectionTest(string word) { return string.Format("You entered the word: {0}", word); } I can invoke the Web service with this client side JQuery code: <script type="text/javascri...

Exporting WSDL/XSD schemas for data contract types with IXmlSerializable

I'm creating a WCF service which I want to consume from a Java app. But the question isn't about .net-java interop. The key point is one of types related to a service operation is IXmlSerializable. That type return its XSD schema with static method referenced by XmlSchemaProviderAttribute. The problem is when we get wsdl for the service...

Using Generic Methods with a WebService like WCF or ADO.NET Data Services

Is it possible to use generic methods with WCF or ADO.NET DS? Or is it possible to create a generic WebService Repository with WCF or ADO.NET DS? ...

Adding WCF Service Reference To Java Application

How can I add WCF Service Reference to my Java Console Application ? I want to use this method for prove the interoperability of my wcf Service. ...

WCF RIA Service deployment issue

I have a very simple sample silverlight application. I added a domain service to it with an entity model that has one entity. The client app simply loads all rows in the entity at startup. When I run this on my development box, it works as expected. However, when I move it to our test server I get an exception saying that the method I am...

WCF internal property

I have a class with a Property : [DataMember] public bool MyProp { get; internal set;} I notice that when the proxy is generated. The property is still settable even though I have marked it internal ( I thought that it won't be generated at all ). Is there a way to achieve what I'm trying? I'd like to be able to set the property fro...

Coarse-Grained WCF Services

I have 2 WCF services now and I want to construct the WCF Service which will use 2 WCF Services(trying to make coarse-grained service).But as you know for making wcf service; create wcf service library and I construct all methods ,write on WCF Service Library.And then I create New Web Site which is WCF Service and I link it to WCF Servic...

What does this WCF error mean: "Custom tool warning: Cannot import wsdl:portType"

I created a WCF service library project in my solution, and have service references to this. I use the services from a class library, so I have references from my WPF application project in addition to the class library. Services are set up straight forward - only changed to get async service functions. Everything was working fine - un...

Regarding Catching FaultException<T> ex

Hi I am using Enterprise application block on my application' server side to handle exceptions. I am able to successfully handle exception. I have created a custom service fault class to handle exceptions. Here are my web config enteries... <exceptionPolicies> <add name="WCF Exception Shielding"> <exceptionTypes> <add ...

WCF: Updating Service Reference gives duplicate config entries

I have a WPF application using service references to a WCF service. When doing updates on the service I need to update the service reference, so I right click it and hit "Update Service Reference". Doing this results in duplicate entries in the App.config file of the client project. It duplicates a binding under wsHttpBinding - addi...

Handling credentials in an app consuming a WCF service with WIF/Geneva

hi there: I wonder what are the best practises in a client app ( winforms/ console/ whatever else) regarding consuming WCF that is Authorized and authenticated using WIF (used to be called geneva). Also at a service level, is it possible to cache the token so the the trip to the STS is not necesary for every WCF operation? ( more info ...

How can i add contract attributes programaticly?

i have pure an interface like below public interface IPure { Array GetEmployee(int employeeId); DataSet GetAllProducts(); List<string> GetAllSubCategoryNames(); double AverageSubTotalFromHeaders(); } How can i add contract attributes programaticly my interface at runtime? ...

Periodic tasks inside WCF service hosted in IIS

We would like to have some periodic actions executed by our WCF service hosted in IIS. What is the best way to do this...Creating a timer doesn't look as a good solution. Creating a windows service that would behave as some kind of a heart beat looks like a problem solution, but it still doesn't smell good. What approach will be a good s...