wcf

WCF endpoint address, default still available after specifying an address

Hi Guys These are my endpoints endpoint name="rest" address="" binding="webHttpBinding" behaviorConfiguration="poxBehavior" contract="IActionService" endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" which makes the service available at /here when I change the address to [say] 're...

Silverlight is calling completed event more than once

I have a silverlight appplication in which i make a call to wcf using basichttpbinding.I have checked all the loops.The problem is that there are certain completed events which are called more than once.I start by handling the loaded event of the webservice.I am not able to find why the event is executed more than once ...

WCF Rest Help Page

How can I update a WCF REST services UriTemplate to be www.mysite.com/... instead of the system name http://mysystem/... When I go to the service help page I see the system name and I don't want the end user to see that. http://myServerName.local/WCF/Svc.svc/blah/function I want to see http://www.mysite.com/WCF/Svc.svc/blah/fu...

How to: Avoiding Cold-Start issues with IIS hosted WCF applications?

We have a system where we host a couple of WCF applications in IIS. Some of these applications have a bit of an extended start-up time taking a couple of seconds (more than a users would be happy to wait for). Once it's up and running, everything is snappy though, so it really is only the startup time. The client also has a requirement ...

WCF WebServiceHostFactory And HttpContext

I have an application which exposes a WCF web service using the WebServiceHostFactory. We use an HttpModule to add a NHibernate session to the current HttpContexts items collection when the request enters, and then close the session when the request exits. The problem I am seeing is that intermittently the session is no longer present in...

Two WCF services return the same datacontract to silverlight client

I have two WCF services which are logically different and I wish to keep them seperate. They each have an operation which returns the same datacontract. A single silverlight client consumes both services. When I add a service reference in the silverlight client to each service, the single datacontract ends up twice in the generated co...

How to sign a SOAP request with WCF

I have an 3rd party SOAP web service. I need to make a call to one of its methods. The request needs to be signed. How can I sign the request? ...

IIS Hosted SSL WCF Service - Certificate or permissions problem

Before anyone flags this as duplicate from the other barrel full of questions about WCF, I don't want MSDN links and blog article references. I can Google for myself, and have been at this for 3 days, so if all you have are Google links, please abstain. I'm having a heck of a time with an IIS hosted WCF service using wsHttpBinding and a...

Sending sensitive data from server to server via client

I have situation where I need to authenticate a client across multiple web services. Basically each service needs to identify the client and know a few other small pieces of information about the client. The way I have it working now is that the needed identifying information is stored in a session table in a database by the authentica...

How do I authenticate user between ASP.NET and WCF?

Hi, We are developing a browser based intranet application. All users have active directory account, so obvious choice would be use Integrated Windows Authentication. But there will be multiple users accessing same client machine so we decided to use form based authentication (but authenticated against AD). In this scenario what is the ...

WCF Threading current owner

I hosting a WCF service on Windows 7 IIS. When the service is trying to write to a config file and getting the error: "Access to the path 'C:\Program Files (x86)\MIMS\Master\ahug_uqt.tmp' is denied." This is not the name of the config file although I assume ConfigurationManager is creating a temp file then updating this to the real co...

Using REST WCF data service as a data source for SQL Reporting services

Guys, can anyone point me to a definitive Microsoft map for where Reporting Services is going regarding using WCF Data Services (ADO.NET Data Services, Astoria) as a data source? There's bits of fragmented info out there, some about creating custom data providers, some about some sort of extension enable connection to the Azure storage l...

Should I use DTO over WCF (namedPipes) or not !?

I mean If I was using WCF over http I wouldn't hesitate. My ORM is LLBLGen Pro which provides me with some pretty nice entity collections features, like tracking changes and other. If I would go the DTO path I would lost this functionality. For now there is on the client side a Web app, which does not need any tracking changes funcional...

WCF Service design question and a Grid on the client side

I'm thinking about how to design my service, especially the part which will provide data for an gridview on the clien side. The GridView needs this data: -A list of objects -Count of all records The question is: Should I create one method for getting these data which will return an object which would includes the count and the list....

WCF OperationContract - which generic collection type should I expose?

I have a WCF web service that has a method that returns a generic collection. Now, my question is: Should I expose it as ICollection<T>, List<T>, IList<T>, IEnumerable<T> or something else? I suppose that List<T> is out of the question since I want to avoid CA1002 errors, but the underlying type will be a List<T>. I am really interes...

Generic WCF JSON Deserialization

I am a bit new to WCF and will try to clearly describe what I am trying to do. I have a WCF webservice that uses JSON requests. I am doing fine sending/receiving JSON for the most part. For example, the following code works well and as expected. JSON sent: { "guy": {"FirstName":"Dave"} } WCF: [DataContract] public class S...

WCF Multiple Service Contracts

Hello, I'm brand new to WCF and I was wondering how to architect my design. I want to expose methods for all my domain objects to be able to get and set their properties. I have them all split up into their own interfaces. i.e) public interface IGroupDAO { IEnumerable<Group> FindGroup(string criteria); Group GetGroup(int groupID...

Can I implement callback from WCF based HTTP service to a gSOAP c/Linux client?

I have a Linux/c client app that connects to a WCF web service over HTTP/SOAP (BasicHTTPBinding). I am using gSOAP. Can I implement the calls to the web-service using callback? I want to get the data asynchronously as call back. Update: I have updated the question title. ...

WCF Custom Validator: How to initialize a "User" object from custom validator

I have a working custom UserNamePasswordValidator that calls into my Oracle DB. This class derives from System.IdentityModel.Selectors.UserNamePasswordValidator and the Validate() method returns void. I load my User object from the database, and once the password is validated, I want to stash my "User" object so the service can access ...

WCF with non WCF Client

When consuming my WCF service from client, I get the following error message. Problem is when I am able to run the code easily from a windows client or a console app. Just not from my web application. System.InvalidOperationException was unhandled by user code Message="Client found response content type of 'multipart/related; typ...