29 #ifndef Pt_Soap_Responder_h
30 #define Pt_Soap_Responder_h
32 #include <Pt/Soap/Api.h>
33 #include <Pt/Soap/ServiceDeclaration.h>
34 #include <Pt/Soap/Formatter.h>
35 #include <Pt/Soap/Fault.h>
36 #include <Pt/Remoting/Responder.h>
37 #include <Pt/Xml/InputSource.h>
38 #include <Pt/Xml/XmlReader.h>
39 #include <Pt/System/EventLoop.h>
40 #include <Pt/SerializationContext.h>
41 #include <Pt/TextStream.h>
42 #include <Pt/NonCopyable.h>
64 bool isFailed()
const;
68 virtual void onReady();
71 virtual void onCancel();
80 virtual void onFault(
const Fault& fault) = 0;
89 virtual void onResult() = 0;
97 void beginMessage(std::istream& is);
122 void beginResult(std::ostream& os);
124 void beginFault(std::ostream& os,
const Fault& fault);
132 bool advanceResult();
148 void setFault(
int rc,
const char* msg);
167 const ServiceDeclaration* _serviceDecl;
168 const Operation* _op;
179 Formatter _formatter;
190 #endif // Pt_Soap_SoapHttpService_h
XML-RPC fault exception.
Definition: Fault.h:43
Composes types during serialization.
Definition: Composer.h:42
Reads XML as a Stream of XML Nodes.
Definition: XmlReader.h:79
Dispatches requests to a service procedure.
Definition: Responder.h:51
Remote service definition.
Definition: ServiceDefinition.h:19
Thread-safe event loop supporting I/O multiplexing and Timers.
Definition: EventLoop.h:72
Text output stream for unicode character conversion.
XML document node.
Definition: Node.h:50
Dispatches requests to a service procedure.
Definition: Responder.h:49
Manages the decomposition of types during serialization.
Definition: Decomposer.h:43
Convert between unicode and UTF-8.
Definition: Utf8Codec.h:43