HydraExpress™ C++ 2019 |
HydraExpress™ C++ API Reference Guide |
Product Documentation: HydraExpress C++ Documentation Home |
All generated client proxies derive from rwsf::Client. More...
#include <rwsf/webservice/Client.h>
Public Member Functions | |
Client () | |
virtual | ~Client () |
void | addFaultHandler (const rwsf::MessageHandler &handler) |
void | addGlobalRequestHandler (const rwsf::MessageHandler &handler) |
void | addGlobalResponseHandler (const rwsf::MessageHandler &handler) |
void | addServiceRequestHandler (const rwsf::MessageHandler &handler) |
void | addServiceResponseHandler (const rwsf::MessageHandler &handler) |
void | addTransportHandler (const rwsf::MessageHandler &handler) |
std::string | getProperty (const std::string &key) const |
virtual void | init (const rwsf::Config &initParams) |
void | setProperty (const std::string &key, const std::string &value) |
void | setTransport (const rwsf::Transport &transport) |
Public Member Functions inherited from rwsf::MessageHandler | |
MessageHandler () | |
MessageHandler (const MessageHandler &handler) | |
MessageHandler (MessageHandlerImp *impl) | |
~MessageHandler () | |
void | destroy () |
void | init (const rwsf::Config &initParams) |
void | invoke (rwsf::CallInfo &callInfo) |
MessageHandler & | operator= (const MessageHandler &obj) |
Public Member Functions inherited from rwsf::HandleBase | |
bool | isValid (void) const |
bool | operator!= (const HandleBase &second) const |
bool | operator== (const HandleBase &second) const |
Additional Inherited Members | |
Protected Member Functions inherited from rwsf::HandleBase | |
HandleBase (void) | |
HandleBase (StaticCtor) | |
HandleBase (BodyBase *body) | |
HandleBase (const HandleBase &second) | |
virtual | ~HandleBase (void) |
BodyBase & | body (void) const |
HandleBase & | operator= (const HandleBase &second) |
All generated client proxies derive from rwsf::Client. Clients are handlers in RWSF, so this class derives from rwsf::MessageHandler. rwsf::Client includes methods to add various handlers to the client. For more information on handlers and clients, see the Web Services User Guide
rwsf::Client::Client | ( | ) |
Default constructor.
|
virtual |
Destructor.
void rwsf::Client::addFaultHandler | ( | const rwsf::MessageHandler & | handler | ) |
Adds a fault handler to the client. Fault handlers are invoked in exceptional situations and are best suited for providing custom message and error handling before the exception is rethrown.
rwsf:FaultMessage
and can be retrieved by calling getStringProperty("rwsf::FaultMessage) on the rwsf::CallInfo instance. void rwsf::Client::addGlobalRequestHandler | ( | const rwsf::MessageHandler & | handler | ) |
Adds a global request handler to this client. Global request handlers are called directly after the service request handlers, and before the message is marshaled.
void rwsf::Client::addGlobalResponseHandler | ( | const rwsf::MessageHandler & | handler | ) |
Adds a global response handler to this client. Global response handlers are invoked after the transport handlers, and after the message has been unmarshaled.
void rwsf::Client::addServiceRequestHandler | ( | const rwsf::MessageHandler & | handler | ) |
Adds a service request handler to this client. Service request handlers are the first handlers invoked before sending a message to the server, and therefore are called before a message is marshaled.
void rwsf::Client::addServiceResponseHandler | ( | const rwsf::MessageHandler & | handler | ) |
Adds a service response handler to this client. Service response handlers are invoked after the global response handlers.
void rwsf::Client::addTransportHandler | ( | const rwsf::MessageHandler & | handler | ) |
Adds a transport handler to this client. Transport handlers are invoked right after a message is marshaled and right before sending the message to the server. When a response is received from the server, the transport handlers are invoked again, but in reverse order.
std::string rwsf::Client::getProperty | ( | const std::string & | key | ) | const |
Given a key, returns the value of an initialization parameter on this client. The only system-provided key is "rwsf:doEscape"
, but any custom key stored using setProperty() is valid.
|
virtual |
Initializes the client
object. This method can be used to initialize client properties with an existing rwsf::Config object.
void rwsf::Client::setProperty | ( | const std::string & | key, |
const std::string & | value | ||
) |
Sets an initialization parameter key with the given value on this client.
rwsf:doEscape
. The rwsf:doEscape
property is used to escape special characters in requests and responses. Set the rwsf:doEscape
value to true
to escape special characters, and false
to not escape. You may also use this method to set any property that your application may require. void rwsf::Client::setTransport | ( | const rwsf::Transport & | transport | ) |
Sets the transport for this client to transport, disconnecting any existing transport.
Copyright © 2019 Rogue Wave Software, Inc. All Rights Reserved. |