Omenof
Omenof

Reputation: 113

How do I get my wcf service to update when I use the WCF Test Client?

I have created a basic wcf service nothing more complicated than helloworld. I have tested it with both WCF Test Client and my own client app and it works fine.

So with that I wanted to add a method to it to see if I might try something a bit more complicated. However now when I try to debug using the WCF Test Client my new method doesn't show up the only method that is there is the original one. So I tried removing the original method completely and test again and it is still there and my new method is still missing.

So it is apparent that my modified service isn't updating whatever the WCF Test Client is using to test against.

Where are the temporary files that VS 2008 generates to allow the WCF Test Client to work. Or could someone explain to me how to refresh the service when I modify it.

Thanks, Josh

Upvotes: 1

Views: 1734

Answers (3)

Omenof
Omenof

Reputation: 113

I tried both of the solution above without success though I appreciate both answers as they are very good things to check.

The answer I found that ended up fixing the problem was to simply update the version number on the project. I don't know why this fixed it, but after I did my new methods showed up and have continued to show up for each build since.

It would appear that this might be a bug in VS 2008.

Upvotes: 0

bendewey
bendewey

Reputation: 40265

Check to make sure you new service and you service interface are properly decorated with the OperationContract attribute.

Update: Take a look at the WCF Test Client, and see if you can get the operation to show up using this?

Upvotes: 1

John Saunders
John Saunders

Reputation: 161821

Did you build your modified service? If you don't build it, then there's nothing to update.

Upvotes: 1

Related Questions