wcf

WCF Self Hosted App on 64bit Windows Server

I have a windows application that acts as a WCF Service that I developed on a 32bit Windows Server 2008 box. I have tested the application and everything works fine when running it from my development machine, as well as from my 32bit workstation. However, when attempting to run the application on a 64bit Windows 2008 Server, the applica...

Changing WCF Service reference URL based on environment

I have a web application that uses a number of WCF Services. I deploy my web application in various environments (dev, UAT, production etc). The URL of each WCF Service is different for each environment. I am using .NET 3.5 andbasicHttpBindings The web application uses a framework to support machine-specific settings in my web.config fi...

WCF + SSL no endpoint found

hello guys, I'm figthing for hours now to figure out this problem. I have a wcf service that I host on II7, all works fine when I use the normal http protocol. I added SSL capabilites and since then I cannot access it from code. I can create a client but cannot run any of its methods. here is what I have <system.serviceModel> ...

Programmatically set identity on WCF EndpointAddress

I am using the following function to create a System.ServiceModel.EndpointAddress when connecting to a WCF Service: private static EndpointAddress GetEndPointAddress(string url, EndpointIdentity identity) { Uri baseAddress = new Uri(url); EndpointAddress endpointAddress = new EndpointAddress( baseAddress, identit...

WCF: Service that only allows a single client and rejects others

I need to create a WCF service that only allows a single client at a time. All other requests should be rejected, and the client must retry again later. The service will take around a minute to complete the request. I've tried: [ServiceBehavior(IncludeExceptionDetailInFaults=true, InstanceContextMode=InstanceContextM...

WCF: Svcutil generates invalid client proxy, Apache AXIS Web Service, overload operations

I'm using a 3rd party web service written in Java and using Apache Axis 1.3. The service has many overload operations. When the WCF Svcutil generates the proxy, it renames the overloaded operation by appending a number after the operation name. For example: getDataResponse getData(getDataRequest request); getDataResponse1 getData1(g...

Pub Sub using http(port 80) ( NO WCF client)

I want to develop a scalable pub-sub system it has to be on port 80 firewalls \ NAT should just work and I cannot deploy a WCF client ( server can be WCF if needed ) any thouhts \ suggestions on how to get going ...

Why am I getting this WCF Error Message?

I am getting the error below when I call my WCF service. What am I missing here? 'System.String[]' with data contract name 'ArrayOfstring:http://schemas.microsoft.com/2003/10/Serialization/Arrays' is not expected. Add any types not known statically to the list of known types - for example, by using the KnownTypeAttribute attribute or b...

WCF Sorting and filtring

Im doing a proof of concept on wcf and mvc. And I got some questions: Is there already a built-in solution for handling sorting/filtring in WCF? Or do i have to do somthing like this, optional sorting class: [OperationContract] Invoice GetInvoices(SortingClass criteria); Is there a build-in solution for lazyloading in WCF, or use...

Invoking WCF service method through a browser

I've a WCF service which uses basic http binding. How do I invoke its operations/methods through a browser? ...

How to Transfer Large File from MS Word Add-In (VBA) to Web Server?

Overview I have a Microsoft Word Add-In, written in VBA (Visual Basic for Applications), that compresses a document and all of it's related contents (embedded media) into a zip archive. After creating the zip archive it then turns the file into a byte array and posts it to an ASMX web service. This mostly works. Issues The main issue ...

Entity Framework, WCF & updates

I have created an n-tier solution where I am retrieving related data from a WCF service, updating it within a Windows Forms application, and then returning the updated data via WCF to be persisted to the database. The Application, WCF Service and Database are all on different machines. The data being retrieved consists of an object and ...

Is it possible to communicate with an external system over TCP/IP using WCF?

We are building a system that interacts with an external system over TCP/IP using the FIX Protocol. I've used WCF to communicate from client to server, where I had control over both client and server, but never to an external TCP/IP based system. Is this possible with WCF? If so, could the community provide links for me to get started...

Microsoft Sync Framework vs WCF

I have the option of either using WCF or Microsoft Sync Framework for my next project. This will be a SQL Server backend that needs to sync to a mobile (.net cf) front end. I have a few issues, 1. the database schemas between the two databases will not be the same. 2. On the server side I actually need to call a .net dll to do the upda...

Why WCF formatter is throwing an exception?

Am getting following error message on calling WCF service: "The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:fieldText. The InnerException message was 'There was an error deserializing the object of type System.String[]. The maximum ...

" ServiceReference1.ArrayOfXElement " not declared error

I have created an application in silverlight 3 beta. I am trying to access a dataset from Silverlight enabled WCF. I have created the WCF. I have added its reference to the silverlight app, but the ServiceReferences.ClientConfig file shows error "ServiceReference1.ArrayOfXElement not declared" in the code. The code is as follows: Parti...

Downloading images via WCF vs WebClient

I'm fetching data (images, 200-400kb) from WCF service to Silverlight client and notice that the Silverlight stops for a fraction of second every time such message arrive. It's not really serious but the animation stops for a while and the whole user experience is ruined. Question time: 1) Do you think it would be beneficial to use Web...

RhinoMock help: Mocking WCF service

Hi! I'm trying to use RhinoMock for mocking out a wcf service. Say I have the following service: [OperationContract] List<User> SearchUsers(UserSearchFilter filter); Adding this service with Visual Studio will generate a proxy, and that proxy has a Interface like: public interface ResourceService { System.IAsyncResult ...

Where can I find *good* resources on WCF?

I'm just starting to get to grips with WCF and have the basics up and running. However at the moment it's mostly just 'magic' to me in that Visual Studio has done everything I needed it to and I've no idea on what's going on or how to configure things like security how I want them. I'm finding it hard to filter out overly-complex detail...

Connect with WCF to a WebService authenticated with username/password

I created a proxy of a Web Service with Visual Studio 2008, and it created for me the following entry in the app.config: <system.serviceModel> <bindings> <basicHttpBinding> <binding name="MyNameHandlerSoapBinding" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10...