Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
HydraExpress C++ API Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

rwsf::Fault

Group:  Web Services


rwsf::Faultrwsf::Exception

Local Index

Members

Header File

#include rwsf/webservice/Fault.h

Description

rwsf::Fault and its derived classes rwsf::ClientFault and rwsf::ServerFault represent SOAP faults. In addition, if a fault is specified in the WSDL, rwsf generates a special class for it, which also derives from rwsf::Fault. On the client, generic faults that are not defined in the WSDL are propagated out to the client and thrown as a rwsf::SoapFaultException. To see how WSDL-defined and generic faults work, run the example Fault in your installdir\examples\webservices\Fault directory.

Public Enums

EncodingStyle { Rpc, Document, Wrapped }
FaultCode { VersionMismatch, MustUnderstand, Client, Server }

Public Constructors

Fault();
Fault(FaultCode faultCode,
    const std::string & faultString);

Public Destructors

virtual
~Fault();

Public Static Member Functions

Fault::FaultCode
getFaultCodeFromName(const rwsf::XmlName & name);

Public Member Functions

std::string
asString() const;
EncodingStyle
getEncodingStyle() const;
Fault::FaultCode
getFaultCode() const;
std::string
getFaultCodeAsString() const;
std::string
getProperty(const std::string & key) const;
void
init(const rwsf::Config & initParams);
void
setEncodingStyle(EncodingStyle style);
void
setFaultCode(Fault::FaultCode faultCode);
void
setFaultString(const std::string & faultString);
void
setProperty(const std::string & key,
    const std::string & value);
const char *
why() const;


Previous fileTop of DocumentContentsIndex pageNext file

© 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.