Hi All,
I have a windows service that exposes a TCP connection (using WCF). This service starts and works fine on my machine (which uses windows firewall).
My colleagues are using mcafee security software (which includes a firewall). When they start the windows service it works some of the time, but the rest of the time the service tim...
I have a set of Service Contracts which split up my service interface into chunks of related functionality. I am currently implementing all contracts using a single service class (may want to split these later but for now the single service class suffices).
I am trying to use configure the endpoints using a config file (as opposed to vi...
Is it possible to catch exceptions in a single place in a c# class file?
I'm coding some unit tests in NUnit to test for a WCF Web-Service, and on all methods/tests want to trap a "EndpointNotFoundException" without having to code this for each test.
edit
I guess i wanted to create a descriptive error in this case without having to pu...
Hello,
I'm trying to write an extension that will allow me, for each and every WCF operation I run, if it returns with a timeout error, to start a new proxy and try again (once).
I know that Michelle Leroux Bustamante wrote a code-gen'ed proxy that does the same, but I'm trying to do this without having to modify or replace the service ...
Hi all,
Recently I've been working on a WCF app and needs some functionalities to compress the soap message body, so that the size of response from service should be reduced.
After some research, I found an implementation available online from
http://weblogs.asp.net/cibrax/archive/2006/03/29/WS%5F2D00%5FCompression-for-WCF.aspx
the ...
We have a WCF service that is used for querying an underlying data store (SQL Server 2005 right now). This service may return rather large amounts of data; 60000+ instances of our entity class that contains ~20 properties. The properties are mostly primitives such as string, int, DateTime with a couple pointing at other entities that may...
Hi, using the IRepository pattern is really convenient in a single tier app (web app, rich client), but how to use this pattern in a distributed application?
I should probably implement an IRepository, which will delegate everything to the server (probably using WCF)
anyone has any experience in this?
thanks in advance,
Erik.
...
Hi!
I know this question is been asked before here but still I'm not sure what to select.
My service will be called from many 3 party system in the enterprise. I'm almost sure the information the service will collect (MyBigClassWithAllInfo) will change during the products lifetime. Is it still a good idea to expose objects?
This is b...
Hi,
There's a requirement to persist messages that are generated between a WCF client and a WSE 2.0 web service. Since the web service is hosted by a third-party, could i implement a solution where the WCF client persists messages to msmq and have the windows service poll the queue intermittently for requests to be sent on the WSE 2.0 w...
Hi, all,
Many WCF services hosted in one windows.
When windows service is just running, the wcf service endpoints are working well. After a long-time running, the wcf service is down. Through this time the load is not heavy. but the services down.
After down, when visit the endpoint thourht Internet browser or client app, it both th...
I am using C#/WCF. I have a web service which shall be invoked by the client.
This is the service definition:
And this is the binding
If I understand this correctly, the messages sent from server to client are encrypted with a certificate. Currently I ...
Hello,
I'm quite a heavy user of WCF and ADO.NET data services. I use them a lot in links between different systems. Now sometimes I would update one side of such a link and forget another side. The other side will crash and most of the times give a pretty useless error about some type being not found or something like that.
Is it pos...
I am getting this error only on one test server but the code works on other servers as well as my dev machine.
Unable to generate a temporary class (result=1).
error CS0266: Cannot implicitly convert type 'xxx.xxx.xxx.xxx.MessageHeaderMessageId?'
to 'xxx.xxx.xxx.xxx.MessageHeaderxxxCode?'.
An explicit conversion exists (are yo...
Hi,
I have a class in a wcf service for representing a set of invalid parameters,
[DataContract(Namespace = WebServiceNamespace.WsNamespace)]
public class InvalidParameterFault : FaultBase
{
public override string GetReason()
{
return Resources.OneOrMoreParametersInvalid;
}
[DataMember]
...
Hi
I want to call a WCF service using SOAP?
this is my contract:
[ServiceContract(Namespace = "http://www.MySite.com/Services/TransferFile")]
public interface ITransferFile : ICloseableAndAbortable
{
/// <summary>
/// This will send the file which is associated with this rule to all the subscribers.
/// </summary>
/// ...
Hi,
I received callback interface from machine A and stored it on machine B.
I'd like to pass this callback interface (that is a proxy on machine B) to machine C.
Machines A, B and C uses WCF so proper interfaces are available.
The issue is when I run PassCallbackToDedicatedMachine(someCallback) method I receive exception like below...
I am looking for some best practices on how to handle the following scenario - flowing permissions from WCF service layer through to UI:
I have WCF services with methods that have been decorated with the PrincipalPermission attribute. I would like a means to allow a client to check if they have the required permissions before invoking t...
I have a WCF Webservice hosted in IIS. It uses a webHttpBinding. There are WebInvoke attributes on the methods so that they can be access REST style. I can successfully use them like so:
http://mydomain.com/MyService.svc/some/rest/style/thing
and POST to that the arguments to the web service.
Now I want to change this to HTTPS over a...
Is there some uniform way I can implement behavior that occurs around a set of WCF service calls? I'm looking for a simple way to handle cross-cutting behavior like logging, initialization, error handling, authorization etc. With ASP.NET a lot of this is easy to implement as an HTTPModule.
Any helpful suggestions?
...
Here is the web.config for my WCF endpoint:
<services>
<service behaviorConfiguration="SearchQueryServiceBehavior"
name="Search.Querier.WCF.Querier">
<endpoint address="mex" binding="mexHttpBinding" name="mexHttpEndpoint"
contract="IMetadataExchange" />
<endpoint binding="netTcpBinding" bindingConfigura...