wcf-client

Cannot connect to my WCF service right out of the box

I have a service I am trying to consume in a unit test. At this point I'm just trying to instantiate the thing. After suffering the "Could not find default endpoint element that references contract" error for hours and unable to figure it out, I completely deleted out the consumer and started from scratch. All I did was add a service ...

Choosing correct connection properties for long running WCF applications

I am writing a client/server application in C# using WCF. All my testings went fine, but as soon as I deployed the service, I noticed random problems in communicating with the server. I enabled debugging and saw messages like this in the server: The communication object, System.ServiceModel.Channels.ServerReliableDuplexSessionChannel, ...

Consuming WebSphere service from WCF client: Unable to create AxisService from ServiceEndpointAddress

I am consuming (or trying to consume) a WebSphere service from a WCF client (service reference + bindings generated through svcutil). Connection seems to be established successfully but I am getting the following error: CWWSS7200E: Unable to create AxisService from ServiceEndpointAddress [address] Rings any bell? I am guessing the r...

WCF Service Client Lifetime

I have a WPF appliction that uses WCF services to make calls to the server. I use this property in my code to access the service private static IProjectWcfService ProjectService { get { _projectServiceFactory = new ProjectWcfServiceFactory(); return _projectServiceFactory.Create(); } } The Create on the fa...

Is there a way that WCF service can know which machine the call comes from?

Hi, I have a WCF service and without changing any code on the client side, is there a way that I can know the detail information of the caller, such as the MachineName, and ApplicationName? Basically, I cannot change the client code to pass those pieces of information over. I tried to use System.Web.HttpContext on the server side to t...

How can I set the maxItemsInObjectGraph property programmatically from a Silverlight Application?

I have a Silverlight 3.0 application that is using a WCF service to communicate with the database, and when I have large amounts of data being returned from the service methods I get Service Not Found errors. I am fairly confident that the solution to it is to simply update the maxItemsInObjectGraph property, but I am creating the servi...

WCF Client access with Message Contracts

I have a web service , i add some extra class which have message contract and after that it changed the way we access some of the methods( and i have not added message contract to these classes these are data contracts ), earlier i.e before we could create one object for request and response (like see the Before part) we are creating a ...

NetDataContractSerialization throwing deserialization error

hi, I have methods which return interface and some methods which accepts interface as parameters. I am trying to use Net DataContractSerializer but I am getting following error... The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri....

Why are WCF Service Reference name spaces relative to my WCF client project's default namespace?

I have a WCF service with a namespace called: MyCompany.MyApplication.Configuration.ConfigurationHelperService On the client side I have an assembly called which consumes this service: MyCompany.MyApplication.Core (this is the default namespace) When I add the service reference, the namespace I'm asked to specify in the Add Service...

WCF Sharing an object between Client and Host

Hey, I can't seem to access the returned value from a method I called on my Host. //Service--------------------------------------------------------- [DataMember] private List<CalculationRecord> History = new List<CalculationRecord>(); public IEnumerable<CalculationRecord> CalculationHistory() { return (IEnum...

Consumed WCF service returns void although return type (& value) specified

I have a WCF service that I am attempting to connect to via a console application for testing (although will move to WPF for the final interface). I have generated the proxy, added the service reference to my project in visual studio and I can see all the methods I have created in my WCF interface: SupportStaffServiceClient client = ne...

Not disposing of a WCF proxy?

I have a WCF service which is a singleton and which manages a collection of proxies to another WCF service which is session-based. The singleton creates a new proxy and passes it some work to do, and the session-based service makes calls back to the singleton service when certain activities complete (pretty much all of the OperationContr...

Using WCF DLL with VB6 ?

I have a VB6 application that needs to communicate with a VS2008 VB.NET WCF server. I have built a VB.NET WCF DLL to be used on the client side, and it --almost-- works with the VB6 application. When I try to run the VB6 app in debug mode, I get "Could not find endpoint element with name 'NetTCPBinding_IComPortManager' and contract 'ICo...

WCF using ChannelFactory.CreateChannel with webHttp behavior

I've got a simple REST based service for which I am trying to create a client proxy using ChannelFactory. I want to be without a configuration file so I am trying to do this in code and I believe I have everything I used to have in .config except for the behavior. Can anyone tell me how I can get this config into c# code: <behaviors> ...

WCF app Deployed on Win7 Machine and get connection refused error

I have created a Sync Framework application based on the following sample from microsoft and deployed it to a new Windows 7 machine for testing. The app runs ok but when I attempt to communicate I get the following error: Could not connect to http://localhost:8000/RelationalSyncContract/SqlSyncService/. TCP error code 10061: No ...

WCF 3.5 to 3.0 backwards compatibility with callback services

I have a set of existing WCF services hosted in a .NET 3.0 app. They're using the WSHttp bindings and no security. I need to connect to these from a .NET 3.5 client. This seems to be working fine for the one-way services, but I also have some callback services (with CallbackContract and SessionMode = Required, using WSDualHttpBinding)...

WCF and client communication on a self hosted WCF service

I am new to WCF services. I have been working with WCF for over two months now and love its capabilities. I am using a self hosted WCF in a Windows Service. The binding is netTCP because the client and service are on the same machine. My communication is duplex and I am using a WCF session. With these features, one of the design needs fo...

List of Endpoints or URIs for a WCF client test-drive

I am aware of the Amazon.com exposed URIs ... which I need to sign up for and then on I can utilize them ....... roll-up my sleeves ..... and get some WCF Client test-drive coding. What are the other such publicly exposed end points that reflect real or almost real-time services? Any offerings specifically from Microsoft? I am bas...

How can I make a feature in the JavaFX client which enables the user to choose which web server he wants to connect to?

I have a JavaFX webservice client mobile application. How can I make the JavaFX client wherein the user can choose which IP address of the WCF servers(I have more than 1 web servers) he wants to connect to? ...

WCF chunking/streaming - make it transparent for client

While developing WCF service i've faced problem of transferring large data as method params (> 4 Mb of raw size, not considering transfer/message overhead). The solution for this problem is to use chunking or streaming, but all the samples i've seen assume client is aware of used method and uses available block size for sending/receivin...