Dela via


Configure Endpoint Dialog Box: General Tab

Use the General tab in the Configure Endpoint dialog box to view the Service relative path, and the two of the three attributes of an endpoint definition: binding and contract. The third endpoint attribute, the Endpoint address, can be modified using this tab.

The Configure Endpoint dialog box can be invoked many ways.

  • From the Configure Service dialog box by selecting the Endpoints tab, selecting a specific endpoint, and then clicking Edit.

  • From the Endpoints list (within Features View) by selecting a specific endpoint, and click Configure in the context menu or Action pane. You can view the Endpoints list by performing one of the following operations.

    • At the server, site or application scopes, double-click Endpoints in the Features View to view the Endpoints Page, which has the Endpoints list.

    • At the server, site or application scopes, double-click Services in the Features View, right-click the service, and then click View Endpoints.

Dialog Options

Field

Description

Service relative path:

The location of the service assembly or file from the root of the Web server. For example, the myService.xamlx file found in the MyServiceFolder directory would contain the value of MyServiceFolder/myService.xamlx in this field. This field is read-only and cannot be changed.

Endpoint address:

The endpoint address is the network address, or URI, where the service is accessed. If this field is empty, the default base address of the service will be used. This field can be edited to change the address of this endpoint. Validation occurs to ensure a valid URI is entered correctly. It represents the value of the address attribute in the configuration file.

Binding:

The endpoint binding defines the protocol mechanism, encoding, and the security required for a client to communicate with the WCF service. It represents the value of the binding attribute in the configuration file. The WCF bindings supported in this release are basicHttpBinding, netTcpBinding, netNamedPipeBinding, wsHttpBinding, and netMsmqBinding. This field is read-only and cannot be changed.

Contract:

The endpoint contract defines the capabilities of the service. It represents the value of the contract attribute in the configuration file. This field is read-only and cannot be changed.

Configuration Changes

The following configuration elements and attributes support the fields displayed in this dialog box:address, binding, contract, and bindingConfiguration. If you change the value in the Endpoint Address field, the address attribute will be changed. Since the address is set to ”” in the code below the base address is used for this endpoint.

<system.serviceModel>
  <services>
    <service name="s1">
      <endpoint address="" 
                binding="netTcpBinding" 
                contract="ICalculator"
                bindingConfiguration="s1NetTcp"/>
    </service>
  </services>
</system.serviceModel>