wcf

WCF error: The caller was not authenticated by the service

Hi, Trying to access my WCF on a server from my client console application for testing. I am getting the error: The caller was not authenticated by the service I am using wsHttpBinding. I'm not sure what kind of authenicating it is expecting? <be...

Question about WCF Reliable Sessions

One of the things that the Microsoft documentation says about enabling reliable sessions is that the service will be able to process messages in the order that they were received. Does this mean that messages within a single session are processed in order? Or does it mean that all messages for all sessions within the service are process...

Sharing types in WCF using VS 2008 not working

I am trying to share DTO's from my datalayer assembly between the client and WCF service. This works using svcutil, but doesn't work when using VS2008. VS2008 generates it's own DTO objects whereas svcutil uses the shared data type. The svcutil parameters I used are: "C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\SvcUtil" ...

BizTalk publish net.tcp WCF service

Is anybody familiar with setting up WCF-nettcp adapters for BTS? When I create a WCF-netTcp adapter for a Receive location, I am unsure how/when BTS will open up port 808 to listen on the address URI specified. It appears to only happen if I restart the entire BizTalk application. If it closes for some reason, I do not see any way of re...

WCF Duplex Service and TCP Port Exhaustion

I am trying to wrap my head around this. I am making a business specific messaging application, it is going to connect between 5000 and 10,000 machines back to our datacenter via WCF (no vpns, all over the net). It is mainly for alerts and I need to be able to send message direclty to specific clients, and WCF allows me to do all of thi...

What is the best way to download all of the WSDL files exposed by a WCF service?

What is the best way to download all of the WSDL files exposed by a WCF service? For example, the root WSDL file references the following other WSDL files: <xsd:import schemaLocation="http://localhost:80/?xsd=xsd0" namespace="http://tempuri.com"/&gt; <xsd:import schemaLocation="http://localhost:80/?xsd=xsd1" namespace="http://tempuri.c...

WCF access through script manager

Hello Question: 1 I am a beginner to WCF , I have taken a web application and hosted on IIS(with some port(250) and added a new WCF file, added an operation contract and tried to call the WCF service from the client web app through javascript, i was not able to get the jsdebug file itself to check wheteher proxy is created or not. But...

Silverlight and WCF or not ?

When developing an application wich will be used inside an intranet do you think Silverlight and WCF is a good solution ? Whould you use WCF Services or WCF Web Services to expose your model to the client ? When consuming a WCF Service the proxies will be generated under a reference and you can only have 1 service reference per service...

Using Windows Role authentication in the App.config with WCF

I am using a WCF service and a net.tcp endpoint with serviceAuthentication's principal PermissionMode set to UseWindowsGroups. Currently in the implementation of the service i am using the PrincipalPermission attribute to set the role requirements for each method. [PrincipalPermission(SecurityAction.Demand, Role = "Administrat...

Returning an interface from a WCF service

I have some .NET remoting code where a factory method, implemented in some server side class, returns interfaces to concrete objects, also executing on the very same server. .NET remoting automagically creates proxies and allows me to pass the interfaces across to the client, which can then call them directly. Example interfaces: publi...

WCF and MSMQ failure handling

Can someone explain to me the difference between these 3 approaches to processing messages that fail delivery? Poison Queue service Dead-Letter Queue service Using a response service to handle failures I have "Programming WCF", but I don't really understand when you would use one of these over another, or when it would make sense to ...

Connecting to an asmx webservice with WCF through a proxy

Hello, Sorry answer found while typing I am trying to connect to an external webservice that requires username/password authentication through a proxy. I am using Visual Studio Express 2008 to generate a service reference I have connected to the same webservice using a web reference.We only had to set a larger timeout because it ...

Get Windows Username from WCF server side

I'm pretty green with web services and WCF, and I'm using Windows integrated authentication - how do I get the username on the server-side interface? I believe that I'm supposed to implement a custom Behavior, or perhaps something with WCF Sessions? Any clues would be super-handy. ...

Connecting to WCF using NET CF

I have a WCF service that uses BasicHttpBindings and a bunch of Windows mobiles that should connect to them. I was able to connect to the service using windows mobile Emulator when the service used App.Confing in order to created the endpoint in a windows application. Now that I have ported the WCF service to a Windows Service and impl...

What is WCF's performance like compared to other solutions for high volume programs?

What is WCF performance like compared to other solutions such as ASMX or even a custom module? Example: An online multi-player video game based on AJAX with JSON with data always going back and forth with the browser and server with hundreds of thousands to millions of users. ...

Why WCF class Binding doesn't have member ReaderQuotas?

I'm wondering why the class Binding in WCF doesn't have a property ReaderQuotas, while its subclasses BasicHttpBinding and WSHttpBinding does. This fact makes coding a little hard. For me, I use below code to extract binding information from MEX endpoint URI. However, it just got Binding. If I want to change ReaderQuotas of the binding,...

Why are file uploads via Silverlight 2 limited to only .TXT files?

I have a Silverlight 2 app that sends a byte array to a Silverlight-enabled WCF service. However, (unless I try to upload a .txt file) the service's SaveFile() method is never reached and I get an error: "The remote server returned an error: NotFound" Am I missing something really obvious? Why can't I upload .doc files? Why only .txt...

WCF for the totally clueless

I've been hearing about WCF for a couple of years now, and I still don't get it. I understand that it's supposed to be a replacement for web services, remoting, MSMQ, and a few other things. The trouble is, every tutorial I find assumes that I've done one of those things, and it tends to follow the line of "Here are the differences; yo...

WCF + NHibernate + ISession = ?

Hi, I'm a beginner concerning both WCF and NHibernate. However, I have to do a little project involving several services (made with WCF) and a persistent layer (made with NHibernate). My problem concerns the usage of ISession and ISessionFactory. I have read (and seen) that the instantiation of ISessionFactory is very heavy (and thread...

How to Consume JSON Web Services from a Windows Client

Is it possible to consume a JSON enabled WCF Web Service from a standard Proxy Client ie not Javascript? Basically I want to minimize the payload size between 2 web services. ...