Share via


EndpointReference.Address Property

Gets or sets the address for the endpoint.

Namespace: Microsoft.Web.Services2.Addressing
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)

Usage

'Usage
Dim endpointReference1 As EndpointReference

Dim returnValue As Address
returnValue = endpointReference1.Address

Dim sampleValue As Address
endpointReference1.Address = sampleValue

Syntax

'Declaration
Public Property Address() As Address
public Address Address {get; set;}
public: property Address^ Address{
    Address^ get();
    Void set(Address^);
}
public Address get_Address();
public void set_Address(Address);
public function get Address() : Address;
public function set Address(Address);

Property Value

The Address for the endpoint.

Exceptions

Exception type Condition
System.ArgumentNullException

address is set to null.

Remarks

If a SOAP message is sent using SOAP Messaging, the response to the SOAP message is sent according to the following rules:

  1. If the call to the Web service is successful, the response is sent to the ReplyTo address, if present. If a fault is generated by the Web service, then the response is sent to the FaultTo address, if present.

  2. If the ReplyTo and FaultTo addresses are not specified, then the response to the SOAP message is sent to the Via address specified in the From object associated with the call to the Web service, if present.

  3. If the Via address is not set, then the response to the SOAP message is sent to the Address specified in the From object associated with the call to the Web service.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000

Target Platforms

Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server, Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, Pocket PC, Windows CE, Smart Phone

See Also

Reference

EndpointReference Class
Microsoft.Web.Services2.Addressing Namespace

Other Resources

EndpointReference Members