FaultTo Class
Identifies the intended receiver for faults related to a message.
Namespace: Microsoft.Web.Services2.Addressing
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)
Usage
'Usage
Dim address As Address
Dim faultTo1 As New FaultTo(address)
Syntax
'Declaration
Public Class FaultTo
Inherits EndpointReference
public class FaultTo : EndpointReference
public ref class FaultTo : public EndpointReference
public class FaultTo extends EndpointReference
public class FaultTo extends EndpointReference
Remarks
If a SOAP message is sent using SOAP Messaging, the response to the SOAP message is sent according to the following rules:
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.
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.
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.
The FaultTo class corresponds to the <FaultTo> element described in the WS-Addressing specification (https://msdn.microsoft.com/library/en-us/dnglobspec/html/ws-addressing.asp).
Inheritance Hierarchy
System.Object
Microsoft.Web.Services2.Xml.OpenElementElement
Microsoft.Web.Services2.Xml.OpenElement
Microsoft.Web.Services2.Addressing.EndpointReference
Microsoft.Web.Services2.Addressing.FaultTo
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
Microsoft.Web.Services2.Addressing Namespace