IdeaBlade DevForce 2010 Help Reference
ServiceName Property
See Also  Send Feedback
IdeaBlade.Core Assembly > IdeaBlade.Core.Configuration Namespace > ServiceKeyElement Class : ServiceName Property



Gets or sets the name of the service on the application server - Applicable to both client and server.

Syntax

Visual Basic (Declaration) 
<XmlAttributeAttribute("serviceName")>
<DefaultValueAttribute()>
<DescriptionAttribute("The name of the service URL where the application server is located. - Applicable to both client and server.")>
Public Property ServiceName As String
Visual Basic (Usage)Copy Code
Dim instance As ServiceKeyElement
Dim value As String
 
instance.ServiceName = value
 
value = instance.ServiceName
C# 
[XmlAttributeAttribute("serviceName")]
[DefaultValueAttribute()]
[DescriptionAttribute("The name of the service URL where the application server is located. - Applicable to both client and server.")]
public string ServiceName {get; set;}
C++/CLI 
[XmlAttributeAttribute("serviceName")]
[DefaultValueAttribute()]
[DescriptionAttribute("The name of the service URL where the application server is located. - Applicable to both client and server.")]
public:
property String^ ServiceName {
   String^ get();
   void set (    String^ value);
}

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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.