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

rwsf::Fault

Group:  Fault Processing


rwsf::Fault rwsf::Exception

Local Index

Members

Header File

#include <rw/rwsf/soapworx/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 Constructors

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

Public Destructor

virtual 
~Fault();

Enumerations

enum EncodingStyle {
      Rpc       = 1,
      Document  = 2
      Wrapped   = 3
    };
enum FaultCode {
       VersionMismatch = 1,
       MustUnderstand = 2,
       Client = 3,
       Server = 4
     };

Public Static Members

static rwsf::XmlNamespace soapEnvNS;
static rwsf::XmlName      VersionMismatchName;
static rwsf::XmlName      MustUnderstandName;
static rwsf::XmlName      ClientName;
static rwsf::XmlName      ServerName;

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;
virtual void 
init(const rwsf::Config& initParams);
void 
setFaultCode(Fault::FaultCode faultCode);
void 
setFaultString(const std::string& faultString);
void 
setEncodingStyle(Fault::EncodingStyle style);
void 
setProperty(const std::string& key, 
            const std::string& value);
Fault::EncodingStyle 
getEncodingStyle() const;
static Fault::FaultCode 
getFaultCodeFromName(const rwsf::XmlName& name);
virtual const char *
why() const;

Related Classes

rwsf::ClientFault and rwsf::ServerFault.



Previous fileTop of DocumentContentsIndex pageNext file

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