Tuesday
Mar132007
WCF: Service Name
Tuesday, March 13, 2007 at 9:00AM
I've been working with a WCF service and wanted to change the name of the service without changing the class name (TypeName). Every example I've seen shows that the name of the type equals the name of the service.
The service is hosted in IIS, and the web.config is configured as:
Filename.svc is configured:
When you browse to the filename.svc file:
After looking through the documentation, I found that the service name is configured through the ServiceBehavior attribute:
Hope this helps…
The service is hosted in IIS, and the web.config is configured as:
<system.serviceModel><services>
<service name="Namespace.TypeName" …Filename.svc is configured:
<% @ServiceHost Service="Namespace.TypeName " %>When you browse to the filename.svc file:
TypeName Service
You have created a service.
To test this service, you will need to create a client and use it to call the service.
After looking through the documentation, I found that the service name is configured through the ServiceBehavior attribute:
[ServiceBehavior (Name = "The name of the service")]
public class TypeName {…Hope this helps…

Reader Comments (2)
Nice! This is exactly what I was looking for and couldn't find anywhere!
Perfect post, I want to comment because the device allows website owners and remain more committed to learn the way of each other.
Bad Breath Natural Remedy
Dragon Tattoos On Arm
Power Yoga for Beginners
The Fastest Way to Lose Weight Permanently
Home Exercises You Can Do to Lose Weight
Low Carb Diet Meal Plans
Quick Weight Loss Diet Plan
How to Lose Weight Fast and Cheap
Best Acne Treatment Product
Reverse Telephone Number Look Up