wcf

Problem with WCF custom behavior used in the silverlight client

To pass the culture information from client to WCF service, I have created a custom behavior using the custom inspector. The inspector class implements IDispatchMessageInspector and the IClientMessageInspector. My client is the silverlight application. And now I'm facing the problem with the IDispatchMessageInspector since it's not ava...

WCF HttpTransport: streamed vs buffered TransferMode

I have a self-hosted WCF service (v4 framework) that is exposed through a HttpTransport-based custom binding. The binding uses a custom MessageEncoder that is pretty much a BinaryMessageEncoder with the addition of gzip compression functionality. A Silverlight and a Windows client consume the web service. Problem: in some cases the ser...

authenticate silverlight app from third party software

Hi Peers, I need your help. I have a requirement to perform secure log in for my silverlight application(using wcf). I am launching this app from old call center software. From here, I need to pass some information to silverlight app in a secured manner (currently passing as url parameters). I doesn't want to provide log in screen ...

Exposing WCF Services from Azure to Third Parties

Hello everyone, I have a situation where I am hosting a WCF service in Azure and I want to be able to expose that service to third-party developers around the world. From the research I have done, I see that there have been bugs (or maybe "features") in Azure due to internal architecture that has made it difficult to add proper service...

WCF Service vs. Referenced Component?

We have a multi services application. We have moved a method that involves a DB access to a separate component that is exposed by a WCF endpoint. We have more than one service that need to use this method. The dilemma is what to use: A WCF call to the method. Call directly to the method, resolved by our DI engine. The system perfor...

Consuming ASMX WebService from WCF

Hello, I am trying to consume an ASMX web service from my WCF service. Here is what I did and i get the following error. "There was no endpoint listening at "http://... " that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details. Please help me. Where I...

WCF FaultException Without Sending StackTrace

I have some WCF services with predefined FaultContract attributes. When the FaultException<TDetail> exceptions are thrown, they're sending StackTrace, Source and other potentially unsave information. Is it possible to return only: Detail (from the generic TDetail) FaultMessage FaultCode (and possibly) FaultReason ...

How can I wait for an async WCF service to complete?

The question pretty much sums it up. I have a WCF service, and I want to wait until it finished to do something else, but it has to be until it finishes. My code looks something like this. Thanks! private void RequestGeoCoordinateFromAddress(string address) { GeocodeRequest geocodeRequest = new GeocodeRequest(); ...

Expose WCF services that belong to an Area in MVC app at a routed path

I've got a WCF service (lets say TestService.svc sitting inside the services directory of an Area in an MVC app. This area is combined into the main app. The area is called content. The routes have been setup and the area works fine. To access the Index action on the Home controller I can do either: http://my-host/areas/content/inde...

Best Practice for WCF proxy lifetime - or how often to close a WCF proxy?

I've been working on a WPF application that uses WCF to access the server side logic & database. I started with a single WCF client proxy object that I was using repeatedly to call methods on the server. After using the proxy for a while, the server would eventually throw an exception (System.ServiceModel.EndpointNotFoundException: The...

iPhone communication with Windows C# App

I am create an iPhone app that needs to talk to a Windows C# app. The app will run as either a Service or Form Application. What would be the best way to accomplish this? Ideally exposing a service-type architecture would be best as I don't need a stateful connection (stateless is fine in this case). Can a WCF service hosted by my app...

Concise XML from EntityObject through WCF?

I'm rather new to WCF and the Entity Framework, so bear with me. I'm passing objects generated by the Entity Framework through a WCF service, and I want to be able to access said objects with both SOAP and REST. What I have currently works, but the outputted XML seems far more bloated than it needs to be. Here's an example response from...

What technologies can be used to call from a native process to a C# process?

I have a native (C++) process and a managed (C#) process on the same system. I want to enable communications between the two, similar to how one could use RPC between two native processes. I know I could use WCF using Microsoft's WWSAPI in the native process., but I was wondering what other options do I have? Or is WCF the best/only s...

Get URL of WCF call

Dear All! I need to find out the subdomain from which a SOAP-based client calls a WCF-method. While that is quite easy if your're on ASP.NET by using HttpContext.Current, I could not find an equivalent for WCF. The reason why I need this value is, because I want to host a multi-tenant application which consists of a Web-Frontend (like ...

Trigger WCF error on SOAP interface change

I'm using WCF to call a SOAP service. I created a c# interface from the service with svcutil svcutil /language:cs /CollectionType:System.Collections.Generic.List`1 /targetclientversion:Version35 /namespace:*,Company.Generated /out:Generated\Soapservice.cs http://www.company.se/soapservice.asmx?WSDL Now the SOAP service suddenly cha...

Sending Soap Header from WCF service

Hello, I do migration from ASP.NET web service to WCF. Current code is like this: Server Side public class MyType { public int x; public string s; } public class MyService : WebService { public MyType myObj; [WebMethod] [SoapHeader("myObj", Direction=SoapHeaderDirection.InOut)] public string SomeMethod() // NO P...

Pass object to WCF service using JQuery

Hi, I know there are questions on here asking exactly the same thing, but despite me reading them I'm still missing something and hopefully you can help! It's very simple, using the WCF template that is added by VS! Interface: [OperationContract] [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat...

how to post a json from javascript?

hi, i want to send a json string from a html webpage using javascript to a WCF.. is there any good tutorial for that? this is the code i am using <head> <title>Test</title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"&gt;&lt;/script&gt; <script type="text/javascript" ...

How to change Wcf to use a different serializer?

By default WCF use DataContractSerialization so if we can change it then my question is how to change it and when should we need which serialization on wcf ? ...

How to use # sign as a url parameter in REST WCF service

I have a RESTFul WCF service with a url likes this groups/{groupName}/members which returns a list of users this works fine for normal groupNames. But when I use a groupName with a special char (like #) nothing is returned ex. when the url groups/c#/members is called from the client it only returns null. I put a break point in the...