DevForce Help Reference
ServiceName Property (ServiceKeyElement)


Gets or sets the name of the service on the application server - Applicable to both client and server.
Syntax
'Declaration
 
<DescriptionAttribute("The name of the service URL where the application server is located. - Applicable to both client and server.")>
<XmlAttributeAttribute("serviceName")>
<DefaultValueAttribute()>
Public Property ServiceName As String
'Usage
 
Dim instance As ServiceKeyElement
Dim value As String
 
instance.ServiceName = value
 
value = instance.ServiceName
[Description("The name of the service URL where the application server is located. - Applicable to both client and server.")]
[XmlAttribute("serviceName")]
[DefaultValue()]
public string ServiceName {get; set;}
Remarks
The ServiceName should always be "EntityService" when the application server is hosted by either the supplied console or Windows service DevForce applications. When hosted by IIS or WAS, the ServiceName should contain both the virtual directory and the service file names. The service file name will usually be "EntityService.svc".

The final endpoint address is formed is formed from the RemoteBaseUrl, ServerPort and ServiceName properties. RemoteBaseUrl:ServerPort%P:IdeaBlade.Core.Configuration.ServiceKeyElement.ServiceName%. For example, if the endpoint address is http://localhost:9009/myapp/EntityService.svc, then the ServiceName would be "myapp/EntityService.svc".

The ServiceName, RemoteBaseUrl and ServerPort values are ignored by the application server when hosted by IIS. These values are also not requred when endpoint configuration information can be obtained from the system.serviceModel section of the client's configuration file.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ServiceKeyElement Class
ServiceKeyElement Members

Send Feedback