IWSDServiceMessaging::FaultRequest (Windows Embedded CE 6.0)
1/6/2010
This method sends a fault matching a given request context. This method should be called only from generated code. For information on generated code, see this Microsoft Web site.
Syntax
HRESULT FaultRequest(
WSD_SOAP_HEADER* pRequestHeader,
IWSDMessageParameters* pMessageParameters,
WSD_SOAP_FAULT* pFault
);
Parameters
- pRequestHeader
[in] Pointer to a WSD_SOAP_HEADER structure that contains the SOAP header of the original request that caused the fault.
- pMessageParameters
[in] Pointer to an IWSDMessageParameters object that contains the message parameters for the original request that caused the fault.
- pFault
[in, optional] Pointer to a WSD_SOAP_FAULT structure that describes the fault to serialize and send. If this parameter is omitted, a fault of type wsa:EndpointUnavailable will be sent.
Return Value
The following table shows the possible error code return values.
Error code | Description |
---|---|
S_OK |
This method completed successfully. |
E_INVALIDARG |
pRequestHeader or pMessageParameters is NULL. |
E_ABORT |
The method could not be completed. |
E_OUTOFMEMORY |
Insufficient memory to complete the operation. |
E_FAIL |
The method failed. |
Requirements
Header | wsdapi.h |
Library | wsdapi.lib |
Windows Embedded CE | Windows Embedded CE 6.0 R2 |