rwsf::ClientFault rwsf::Fault rwsf::Exception
#include <rw/rwsf/soapworx/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.
©2004-2007 Copyright Quovadx, Inc. All Rights Reserved.
Quovadx and Rogue Wave are registered trademarks of Quovadx, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.