Chris Klepeis
Chris Klepeis

Reputation: 9983

Renaming published WCF service library URL for consuming apps

I have a WCF service library project that I publish to a IIS hosted folder. After publishing, a svc is created in the folder and is consumed with a URL like this:

http://mysite.com/services/This.Is.My.Namespace.ServiceClassName.svc

How can I set this up so that I can use a friendly service name that doesn't let others know the namespace / class name used in my project?

In the web.config, does the service name have to exactly match up with the namespace + class name?

Perhaps I should have created WCF service applications instead?

Upvotes: 0

Views: 244

Answers (1)

Valamas
Valamas

Reputation: 24729

You can rename the file. If you edit the file as text, you will see the namespace it uses.

Upvotes: 1

Related Questions