wcf

How to send a System.Configuration.Configuration object trough WCF

Well I think the title explains for itself. I'm trying to export a configuration object trough the wire, but it looks quite difficult, the class is not serializable and... it's sealed, so no heritage here. As anyone did something like this before? Regards ...

sproxy for vs2008?

Hi, I'm trying to create WCF proxy in unmanaged C++ (No .NET framework is installed on the client). I've found the website "http://icoder.wordpress.com/2007/07/25/consuming-a-wcf-service-with-an-unmanaged-c-client-with-credential-passing/" which teaches how to generate such a proxy. The problem is that I've found the sproxy.exe only i...

How to make my NET.TCP WCF service to handle secure and unsecure communication

Hi! I have a WCF service that needs to handle the following : 1 Service Regular TCP Endpoint Secured customUsernamePassword Endpoint Secured Windows Endpoint The system.serviceModel section looks like this : <system.serviceModel> <serviceHostingEnvironment multipleSiteBindingsEnabled="true" /> <behaviors> <s...

Uploading file from silverlight to WCF service

I am having trouble to upload(from Silverlight 4) a wav file to the server(WCF .NET 4). The file is uploaded from SL to server and write it to disk. But the uploaded file is changed. The two files(before uploading and the uploaded one) have exact same size but different content. And I tried the uploading in a normal console program, it w...

WebOperationContext Object reference not set to an instance of an object

When I try to use WebOperationContext.Current in a WCF project, the Current is null. Below is the example. Could anyone please shed a light on it? WebForm - default.aspx: ServiceClient sc = new ServiceClient(); Response.Write(sc.DoWork(1) + "<br />"); WebOperationContext c = WebOperationContext.Current; --Current is null...

WCF .NET 4 OutputCaching with Stream doesn't seem to work

Hello, I'm having problems with OutputCaching over a WCF REST service on .NET4-IIS7. My service has a custom Authorization scheme (by implementing ServiceAuthorizationManager), one which should take place on every request, and any caching must be done after the request is authorized. So far, this seems to work, only the caching part I c...

Deploy WCF REST 4.0 to XP IIS 5 ?

I am trying to deploy a simple "Hello World" .NET 4.0 REST-style WCF service on WinXP (IIS5). It works fine in Cassini. I tried to adapt the info here to me: http://haacked.com/archive/2008/11/26/asp.net-mvc-on-iis-6-walkthrough.aspx but something is not clicking. Can anyone lend ideas or comments? Yes, I must stay with WinXP. Thanks...

Is there a prefered approach for introducing a delay before a WCF call

As my user changes the CurrentItem of a dataForm, I need to go the server to get addtional data. It's quite likely that the user could scroll through several items before finding the desired one. I would like to sleep for 500ms before going to get the data. Is there a component already in the SDK or toolkit like a background worker th...

WCF: The socket connection was aborted

CommunicationException was unhandled by user code The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeout was '02:48:04.9840000'. I've been testing this application for months and hav...

Generally speaking, how do I implement a realtime monitoring system?

Suppose I have either an ASP.NET displaying my results, or a Silverlight client. And I'd like to show the current status of my server, or embedded device. (pretend the device reads temperature and humidity stats) How should I send the status information from my device to the front end? Should I poll the device and save the results to...

WCF wsHttp binding, for clientCredentialType should I use Basic or Windows?

Hello, I have several WCF wsHttp services using Transport security over an SSL connection. Presently I use "Windows" for the clientCredentialType and all has worked fine with exception of one scenario where my e-commerce site (its own SSL) had a problem communicating with the other server via SSL and I had to create a separate service ...

WCF endpoints are driving me insane.

Maybe I'm just not getting it, but I have a service that is deployed to an IIS 6 machine. That machine has a LAN address and a Public internet address. How on earth am I supposed to be able publish this service with both accessible? Address 1: http://serverName/ServiceName/Service.svc Address 2: http://www.companyName.com/ServiceName/...

Console App Host ASPX Page?

In Framework 4.0 I have a little console app. I have a self-contained .aspx page (no codebehind) and would like to run the console app just to host this page. I searched around for tricks with System.ServiceModel.Web or System.Web.Services trying to find a way to do this. Can anyone help me get clue? Thanks. ...

Windsor WCF Facility factory ?

So I currently have a master DAO class ITrackingToolDAO that has all the Service Contracts for each of my business entities. public partial interface ITrackingToolDAO { void Open(string connectionString); void Close(); IBusinessFunctionDAO BusinessFunction { get; } IBusinessUnitDAO BusinessUnit { get; } IProgramBudg...

WCF: using certs to encrypt message body and timestamp, as well as authenticating on the server

I have to create a WCF proxy of a web service hosted on Weblogic server. The specs I have to implement (rather urgently I'm afraid) are: use SOAP, WS-Security, use SSL (but not mutualSSL) sign the message body timestamp it sign the timestamp. The server will authenticate the client ensuring it has a cert with a specific CN. Could ...

Binding Silverlight 4 TreeView to a hierarchical dataset using WCF

What is the best / good approach to bind Silverlight 4 TreeView control to a hierarchical data set returned by a WCF service, please? Thanks, Iegres. ...

MaxReceivedMessageSize: why both in client and server in a one-way call?

Hi everybody I'm trying to fully understand WCF configuration options. There is a thing that I fully don't understand. Why should I say to the client and to the server that the MaxReceivedMessageSize is x KB? I mean I have a service that exposes a set of fire-and-forget calls (no callback). Why should the client know how much is the MaxR...

How does TraceViewer work with a secured WCF service?

Hi! I have a WCF Service that runs over TCP with Certificate security like this : <binding name="netTcpUserNameMessageSecurity" portSharingEnabled="True" transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions" hostNameComparisonMode="StrongWildcard" listenBacklog="10" maxBufferPoolSize="2147483647" maxBuf...

Multiple Global.asax files per web application project

I have existing web application project in which i need to add new subdirectory. In this subdirectory i need to add WCF service. Question is: Can i use different AppDomain then services from root directory? Also, can i add new global.asax just for this subdirectory? ...

DataContract serializer support for imports. Out of band mechanism?

Describing the DataContractSerializers support for import msdn has this to say: Supported. DataContractSerializer supports xs:include and xs:import. However, Svcutil.exe restricts following xs:include/@schemaLocation and xs:import/@location references when metadata is loaded from a local file. The list of schema files must be passed th...