wcf

Converting WSE example code to WCF

I am new to both WSE and WCF and I am trying to consume a web service using WCF but all the example documentation is for VS2005 + WSE. This web service uses WS-Security 1.0. I have added a service reference thru visual studio but I am at a loss on how to do the equivalent of the code below in WCF: // 1. Initialize the web service prox...

dynamically set WCF baseAddressPrefixFilters

I have a WCF service that I am deploying in a shared hosting environment. Because of this I have to specify baseAddressPrefixFilters (see answer here for why this is necessary). Setting the base address prefix filters happens in the web.config like so... <serviceHostingEnvironment> <baseAddressPrefixFilters> <add prefix="http://e...

Visual Studio 2008 "Add Service Reference" for Sharepoint: 401 and port numbers

I'm trying to "Add Service Reference" to SharePoint web services (e.g., "http://cogent-moss/_vti_bin/Webs.asmx"), but am having trouble. I seem to always get this error: The document at the url http://cogent-moss/_vti_bin/Webs.asmx was not recognized as a known document type. The error message from each known type may help y...

Error 400 (Bad Request) with WCF Tutorial?

I began using WCF last night to setup a simple client server that will allow me to send game information to the client at the beginning of a session. I followed the microsoft tutorial on WCF and used the VS2008 "WcfSerivce" template to begin and added my methods. I then copied and pasted the address it gives me into the service referenc...

Async call to WCF with C#?

In C#, how do I make an async call to a WCF Web Service? I have a Service Reference set up to generate async. I also modified my calls to use { WebServiceObject.Begin* () } but there are two parameters at the end, 'AsyncCallback' and 'object asyncState'. What are these and how do I use them? Thanks, ...

Should I create a WCF connection once for my whole app, or for once for each page?

I'm working on an application that uses WPF and WCF. As it stands now, for each WPF page, a WCF connection is created for that page to use. Is this good practice? Or should I create a Singleton object to contain a WCF connection that's passed around to my pages as needed? Thanks! ...

gSOAP and WCF session: strange cookie detected

I am trying to implement session between WCF and gSoap, using basicHttpBinding. And I've almost succeeded, using ASP.NET compatibility mode. I used this technique: http://blogs.msdn.com/sajay/archive/2006/08/03/687361.aspx Now, while I used a .NET client for my service, everyting just worked fine. Then I tried the same with gSOAP. I mad...

How to connect to a WCF Service with IronPython

Has anyone done this? I've tried generating a c# proxy class and connecting through it, but I cannot figure out how to get IronPython to use the generated app.config file that defines the endpoint. It tries to connect, but I just get an error about no default endpoint. I would ideally like to make the connection using only IronPython ...

How do I specify the name of my application's App.config file in WPF?

This is very frustrating... I can set the Configuration File for a Windows Forms Application just fine. Consider this: public static void Main(){ AppDomain.CurrentDomain.SetData("APP_CONFIG_FILE", @"SharedAppConfig.config"); //do other things } However, in a WPF application, this doesn't seem to work! If I set this value, the ...

Passing image throught wcf and display them in wpf datagrid

Whats the best way to pass an image in wcf service, and after passing it display it in a wpf datagrid? ...

WCF, Security and Certificates

I have a client/server WCF application that needs some sort of user authentication against a database. The application (both client and server together) is being developed to be sold to dozens of customers, for use on their intranets. We're not too worried about encrypting most of the data moving across the wire, except of course durin...

Large WCF web service request failing with (400) HTTP Bad Request

I've encountered this apparently common problem and have been unable to resolve it. If I call my WCF web service with a relatively small number of items in an array parameter (I've tested up to 50), everything is fine. However if I call the web service with 500 items, I get the Bad Request error. Interestingly, I've run Wireshark on t...

WCF Interop with Axis2 using WS-Trust

We are trying to get WCF and Java talking to each other using SAML tokens issued from an STS. Despite the fact that both sides are compliant with the standards, WS-Security, WS-Trust, WS-Policy, etc., they don't seem to talk to each other and one or the other will throw cryptic exceptions or ignore security headers. We are using .NET 3....

WCF Additional Proxy Classes

I have a WCF webservice that has the following service contract [ServiceContract(Namespace = "http://example.org")] public interface IEquinoxWebservice { [OperationContract] Guid Init(); [OperationContract] List<Message> Dequeue(Guid instanceId); [OperationContract] void Enqueue(Guid instanceId, Message message...

Inter-service Communication Architecture Using WCF, Dependency Injection, and Unit Testing

I'm new to WCF and in a large part, also distributed programming. I am working on a project that requires 4 discrete services. I am trying to correctly define the responsibilities for each component of each service. Suppose I have service B which needs to communicate with service A. For each service, I have defined the service implem...

WCF right for all cases?

I'm building an application that will distribute its processing over a farm. In my basic design I have two services: A "controller" which watches for new work, queues it up, and manages the results. A "worker" which binds to a particular controller. The worker will check out work from its controller, and push the results back. In the...

WCF and PrincipalPermission

I have a number of services that will be running under the security context of NT Authority\System as a Windows service (the services are NetTCP-based). There are six groups stored in Active Directory that will be allowed to access these services: Users Agents Approvers Administrators (three levels of admins) I know I can get the user ...

WPF Client communicating with WCF Windows Service over Network, Feasible?

At work, I want to create a WCF Windows Service that runs on a network server. Then I want to create a WPF application that can be installed on various machines on the network. This WPF application needs to be able to communicate with the WCF Windows Service on the network server. Is this feasible? Is there a better way to accomplish w...

Can we identify if WCF Request is coming from our Silverlight APP or some place else?

Can we identify if WCF Request is coming from our Silverlight APP or some place else? ...

Using protobuf in WCF services

My asp.net web pages are on IIS web server and it communicates with WCF services(sitting on windows 2008 app server) using basic HTTP binding. The performance of my wcf services doesnt seem to be that good and I want to improve the same.Also, I need to balance on scalability as my site will be having a very high traffic. HTTP compressio...