My application has 2 "services", let's say one is a basic (integer) calculator, and one is a floating point calculator. I express these as interfaces like so:
public interface IBasicCalculator
{
int Add( int a, int b );
}
public interface IFloatingPointCalculator
{
double Add( double a, double b );
}
I want to expose these via WCF....
I would like to expose some service functionality as a virtual file share to allow conventional applications to use the virtual folder as a real one.
For example, a file path consisting of
\\\\Server\VirtualShare\File.ext
means that VirtualShare doesn't really exist and only available as long as my service is running. A file access wi...
I have a collection class that I have decorated with a CollectionDataContract. The collection class also has a property on the class that I would like to be passed to the service client. I have tried adding [DataMember] to that property but it didn't add it to the class in the client when I updated.
Any WCF experts out there have any ...
I am calling WCF from an ASP.NET page using ASP.NET Ajax. I am using Forms Authentication to secure the website.
Everything was working as expected through development until it was deployed onto the production server then I started getting javascript errors because the service could not be found. The production server is using SSL so I...
I'm designing a client-server chat application (in fact I'm not, but let's pretend I am:)), and I'm a bit puzzled by some race conditions I've experienced.
Let's say I've got the following code:
public interface IServer
{
[OperationContract(IsOneWay = false)]
[FaultContract(typeof(ChatException))]
void BroadcastMessage(string msg...
I have two webservices that have exactly the same methods and signatures but point at different servers (specifically the Virtual Earth production and staging environments). I wish to switch between using the production and staging services on the basis of a config setting and don't want to repeat myself and replicate each method where I...
Following on from this question:
http://stackoverflow.com/questions/334472/run-wcf-servicehost-with-multiple-contracts
Are there any performance penalties from running multiple service hosts as suggested in one of the answers?
I am looking at implementing a solution with 4-5 service contracts, and could define one class implementing t...
Hi,
From what I know basichttpbinding is backward compatible to .net 2.0 correct?
It seems that when you reference the WCF service, the API is different.
My service uses SSL, and it has a username and password you have to set.
In .net 2.0 the API is totally different, and having issues calling an endpoint correctly.
...
UPDATE 3:
I created a Visual Studio 2008 test project and tried to create a service reference to shared site WCF service reference and received the following error:
There was an error downloading
'http://apps.mydomain/MyService.svc'.
The request failed with HTTP status
400: Bad Request. Metadata contains a
reference that cann...
I'm developing a business application, using Silverlight for the UI and a WCF webservice for the back-end. In the database I have a number of lookup tables. When the WCF service returns a business object, one of the properties contains the entire row out of the lookup table instead of just the foreign key, so in the UI I can display thin...
I'm currently working on a wcf service that does some lookups in a database and return the data to the client. The user has entered an id of something he wants to see in a textbox. This could be a client-id, a product-id, an order-id or whatever. The lookup method on the server tries to find the id in the client table. If it's not in the...
I am looking at building a client server application in C# using winforms or WPF. The client application must be a local application because it has to interact with specialised hardware.
The architecture I'm looking for is the client connects to a server port using TCP/IP. The client will then make requests to the server and the serve...
Is it possible to host custom data on self-hosted HTTP-configured WCF services, such as custom HTML or XML files, without involving IIS? I’m speaking of a ServiceHost instance that instantiates its own EndPoints/listeners.
I have an app that uses a self-hosted WCF service and it has a Windows Forms client but I’m looking at adding a lig...
Given an operation contract such as:
[OperationContract]
void Operation(string param1, string param2, int param3);
This could be redesigned to:
[MessageContract]
public class OperationRequest
{
[MessageBodyMember]
public string Param1 { get; set; }
[MessageBodyMember]
public string Param2 { get; set; }
[MessageB...
Is there a way to create WCF proxy objects on the fly without using codedom? By on the fly I mean during runtime. So lets say I have a smart client application that is accessing a WCF service. The Data Contract for the WCF service is changed while the client is running. I want to dynamically create a new proxy object that reflects the ch...
I am using WCF to a soap endpoint using security mode "TransportWithMessageCredential".
The WCF client/server uses SCT (Security Context Token) to maintain a secure connection, and it is working as intended in the general case.
However, after a period of inactivity, the SCT will be expired and the next method call will cause a MessageS...
Lets assume that I'm dealing with a service that involves sending large amounts of data.
If I implement this with WCF, will WCF throttle the service based on how much memory each request takes to serve? Or will I be getting continuous out of memory exceptions each time I receive a large number of hits to my service?
I'm quite curious a...
How to access App_Data folder in WCF service?
I have placed a xslt file and I am not able to find the path.
...
I am trying to set up a streaming WCF service using basicHttpBinding. The service is hosted in an IIS7 process.
The contract contains a simple Stream GetStream() operation.
When I connect with a simple client using a Service Reference I get the following result from the server.
Content Type multipart/related; type="application/xop+xm...
I have found a lot of material on the web about using the ASP.NET Membership Provider with the wsHttpBindings, but I haven't seen any reference to using it with webHttpBindings.
I am looking for a system that will work in two scenarios:
The user is logged into an asp.net website and the website is making calls to the service.
The user...