wcfservice

Problem connecting with WCF service..

Background: I have a WCF service deployed on my local machine that in turns connects to the SQL Server 2005 database. To consume the service, I have a client application that dynamically creates the service client to consume the methods exposed in wcf service. Configuration: OS: Windows XP IIS : 5.1 Problem When I run client FIRST...

Passing classes to a WCF service

Hey all, I have a problem but first i want to know if im working on the best solution. I am making an application that will sit on hundreds of client machines and send data to/retreive data from a server. The server will get that data and store/process it. I want the client apps to be as lightweight as possible so i want the server to...

WCF configuration

Hi, We hosted WCF services with basicHttpBinding on server side, <bindings> <basicHttpBinding> <binding name="BasicHttpEndpointBinding" > <security mode="TransportCredentialOnly"> <transport clientCredentialType="basic" /> </security> </binding>...

How to ensure that a machine name is valid and running?

I have a wcf service deployed on mulitple machines on the intranet. User can access the machine through internet by connecting its machine through SSL (secured connection of the client network). User has a client application to consume web service deployed on mulitple machine on client network. I get the machine name from the client ...

WCF webservice running on a two server cluster, with loadbalancer, resolving web service address

Hi All, Apologies for the long winded title but looking for a solution to what might be a common problem. We have a loadbalancer with address, say: www.myloadbalancer.com Below is two web servers First server: webserver1.farm.com Second server: webserver2.farm.com We deployed a webservice on to the two servers but noticed something ...

How do I access an incoming request's endpoint (service/user)principalname?

I've had an issue with security in my WCF server, so now we authenticate each request via ServiceSecurityContext.Current.WindowsIdentity. However now, for other reasons, in case that value is null, we need to access the endpoint corresponding to the service being requested and get the ServicePrincipalName or UserPrincipalName supplied ...

Stateful WCF Web Service

I'm new to WCF and I've been trying to use the Session state in Web Services, which I managed to get working with a number of articles. But these articles all follow the .net 2.0 approach, as the new WCF Service References do not have a CookieContainer by default. What is the new school way of using stateful web services? (Without us...

Make an interface structure appear in a WSDL

Hi all, I've exposed a method on a web service to return an interface and sending back conrete classes using the [ServiceKnownType] attribute which works very well. However, the wsdl description does not display any of its properties or any xml structure for this interface, this is the same when i send back List it gives it a default t...

Will messages between WCF Services hop over a WiFi Network/WLAN?

In my office building we have laptops on multiple floors all running a WCF Service. When WCF services communicate with each other, will a message for an out-of-range device automatically reach it by multi-hopping? Does WCF/the WLAN device driver handle this? Or do I have to detect if a device is not contactable/out-of-range and implement...

Can multiple WCF services communicate with each other?

I'm just beginning WCF and so I don't understand exactly how the abstraction works. Can I write a WCF service and install the same thing on multiple machines, and have them communicate via some ID? I'm looking at sending/receiving commands, and continuous real-time data being sent between devices. ...

How to achieve callbacks in WCF service?

I have to create a WCF service that handles following tasks: Register the notification sent from multiple client through WCF service. The WCF service in turn sends ( Callback) the notification to the multiple client. The WCF service also want to listen a datachange notification from another database server. Can a WCF service is trea...

Can a Java application or any other application other then .NET can consume WCF enabled application.

I have created a console application in which I have exposed interface having [OperationContract(IsOneWay = true)] attribute. If yes how can Java application call methods exposed in WCF application? Note: its not a WCF sevice so we not having Service refence. ...

WCF Maximum Message Size Quota

I'm trying to call a WCF service (hosted in a Windows Service, not IIS) and am getting the following error: The maximum message size quota for incoming messages has been exceeded for the remote channel. See the server logs for more details. I have tried increasing the MaxReceivedMessageSize and the ReaderQuotas to their maxi...

How do I host a wcf service on the internet?

This is probably a basic networking issue, but I am new to this stuff and just do not know the answer. I have written a wcf service and client. I can use one of the http bindings and get the service to work correctly when I put my machine's network IP address as the endpoint address and run the client and server from the same machine. ...

WCF proxy client generated with wsdl not matching for ServiceContract, XmlSerializerFormat attributes.

Hi, I am developing WCF services in .net 3.5 framework and hosting them in IIS 5.1 windows xp sp3 with basicHttpBiding. Services consuming client developed in .net 2.0 framework. For this I generated proxy client using WSDL.EXE. This tool generates proxy class without any problem, but the problem it adds for every property adds extra pr...

Deploying a WCF service to the shared host environment

I created a very simple WCF class library and added this project to the solution that has a web project. I added a reference to the service from the web project. Locally, everything works as expected. When I do a copy site to my hosting provider, I get all sorts of errors. Currently I have this error: Parser Error Message: The binding ...

Unable to deploy a simple WCF - Get the "The resource cannot be found"

I created a very simple WCF and deployed it to the hosting provider by doing a "Copy Website". Locally, it's setup to use the development server (not in IIS). The domain is under Full trust permissions. Locally, I can get to the Service.svc page, but not in the hosting provider. The code is as follows: Service.svc <%@ ServiceHost Lang...

Unit testing database-dependent Window services

We have a set of services in .NET 3.5\C# and WCF. The NUnit tests need the services to be running and listening for requests. The services need an updated SQL database to be ready for connection. Currently the [SetUp] section of the unit test does two tasks: Execute the latest SQL scripts to build the database. Utilize a System.Diagn...

"Unable to connect to the remote server"

I'm able to call a 3rd party vendor's web service from a Windows form program just fine. When I try to call the same web service and web method and same URL from a WCF web service I get the following error: ExportValuationPolicyNumber:Exception=System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.Soc...

Fluent WCF (in code) configuration/hosting for multiple clients?

Doesn't configuring WCF in code require more coupling with the model and service libraries? If I'm understanding it correctly, you configure the host in code in the same project as the utilized services. Then configure the channel on the client, but the client then has to know about the model which means if I have several client apps u...