Reputation: 500
I´m creating a new WCF service. I initially had only three operations. But after some time I decided to add two more. This operations doesn't appear in the Microsoft test client, neither in the list of operations when I try to add a service reference from my WPF client. Also I tried to comment one of the initial operations. It still apears in the Microsoft test client and can be invoked. I Tried also delete the dlls generated by the service and regenerate again. No luck. There are some kind of "cache" where Visual Studio stores the WCF services libraries that I can delete?
UPDATE: I'm working with the service running in the ASP.NET devolopment server.
Upvotes: 2
Views: 10701
Reputation: 500
I don't know why, but I created a new project and copied the definitions of the operations from the problematic project and the problem is gone. One case more for Microsoft mysteries.
Upvotes: 1
Reputation: 455
SOLUTION HERE :
Make sure your dataContract does NOT contain any enum (You can use integer instead)
Be sure to reference a project in the solution and not a dll on your disk
=> You got it
Upvotes: 0
Reputation: 1214
Did you close the client connection in client side as showing your service
class Test
{
static void Main()
{
LocationClient client = new LocationClient();
// Use the 'client' variable to call operations on the service.
// Always close the client.
client.Close();
}
}
Upvotes: 0
Reputation: 9160
One thing we have discovered is that when you deploy the dlls that they must be in the bin, and cannot reside in the debug or release folder.
Upvotes: 0
Reputation: 161821
You need to understand the order in which things happen.
[OperationContract]
on them, or removing them, or changing their parameters or return values.This last will have the effect of sending a request to the service for the new metadata or WSDL. Only then can the client see the changes you made to the definition of the service.
Upvotes: 5
Reputation: 1583
Make sure you are updating the services after adding the new operations.
Also make sure they have the attribute [OperationContract]
.
Upvotes: 0