Share via


DpwsHostedService.EndpointAddress Property

Gets or sets the unique endpoint address used by the HTTP transport to access this hosted service.

Namespace: Dpws.Device.Services
Assembly: MFDpwsDevice (in mfdpwsdevice.dll)

Syntax

public virtual string EndpointAddress { get; set; }

Property Value

A string containing the unique endpoint address used to access this hosted service.

Remarks

This property makes up the unique portion of a hosted service endpoint address. The stack automatically generates HTTP transport endpoint addresses using this property. The generated endpoint address will be used by DPWS clients to call this hosted service. In a directed SOAP request, the HTTP transport that incorporates this address will be sent in the header.To property. The transport dispatcher uses the HTTP transport address to dispatch a request to the intended hosted service. By default, this property is set to the ServiceID. We strongly recommend that you do not set this value manually. By default, the stack generates a unique HTTP transport address using the following format: HTTP://(device ip address):(deviceport):/(ServiceAddress). If you set this property the stack will use your address in place of the (ServiceAddress) portion. If you set it, make sure you know what you intend to do, or your request will not make it to the service. When this property is set, an endpoint reference is created and added to the endpoint references collection for this service.

Version Information

Available in the .NET Micro Framework versions 2.5, 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

DpwsHostedService Class
DpwsHostedService Members
Dpws.Device.Services Namespace