rwsf::ClientFaultrwsf::Fault
#include rwsf/webservice/Fault.h
An instance of class rwsf::ClientFault extends rwsf::Fault to represent a SOAP client fault. A SOAP client fault is used to indicate an error caused by incorrect information from the client or a bad SOAP request.
The main use of this class and rwsf::ServerFault is to generate a SOAP client fault or SOAP server fault in the server implementation. For instance, the generated sample server implementation contains the following code:
throw rwsf::ServerFault("Sorry: The service was invoked but the requested operation \"getSummary\" has not been implemented. An implementation must be written.");
You may choose to also throw a rwsf::ClientFault in the server implementation for several reasons, such as an out-of-range input parameter.
For more information on faults, see Section 7.3.7, "WSDL-defined Faults," in the HydraExpress Web Service Development Guide.
ClientFault(const std::string & msg);
Creates an instance of a client fault containing the error text msg. The SOAP message is then passed to the constructor of rwsf::Fault.
© Copyright Rogue Wave Software, Inc. All Rights Reserved. All Rights Reserved. Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. HydraExpress is a trademark of Rogue Wave Software, Inc. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.