namespace soap11 {
class XMLTOOL_API Envelope;
+ class XMLTOOL_API Fault;
/**
* Implements SOAP 1.1 messaging over a transport.
{
MAKE_NONCOPYABLE(SOAPClient);
public:
- SOAPClient() : m_validate(false), m_transport(NULL) {}
+ /**
+ * Constructor
+ *
+ * @param validate true iff schema validation should be used
+ */
+ SOAPClient(bool validate=false) : m_validate(validate), m_transport(NULL) {}
+
virtual ~SOAPClient();
/**
* will be forthcoming, an exception is raised.
*
* <p>The caller is responsible for freeing the returned envelope.
- *
- * <p>Once a response is returned, the object will be reset for a subsequent call.
*/
virtual Envelope* receive();
* @param transport reference to transport layer
*/
virtual void prepareTransport(const xmltooling::SOAPTransport& transport) {}
-
+
+ /**
+ * Handling of SOAP faults.
+ *
+ * @param fault SOAP Fault received by client
+ * @return true iff the Fault should be treated as a fatal error
+ */
+ virtual bool handleFault(const soap11::Fault& fault);
+
/** Flag controlling schema validation. */
bool m_validate;