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>
124 void beginFault(std::ostream& os,
const Fault& fault);
167 const ServiceDeclaration* _serviceDecl;
168 const Operation* _op;
179 Formatter _formatter;
190 #endif // Pt_Soap_SoapHttpService_h
Core module.
Definition: pt-gfx-images.dox:14
Manages the decomposition of types during serialization.
Definition: Decomposer.h:44
Reads XML as a Stream of XML Nodes.
Definition: XmlReader.h:80
Convert between unicode and UTF-8.
Definition: Utf8Codec.h:44
Dispatches requests to a service procedure.
Definition: Responder.h:52
Responder(const ServiceDeclaration &decl, Remoting::ServiceDefinition &def)
Construct with Service declaration and definition.
void beginMessage(std::istream &is)
Parses the XML-RPC message.
Remote service definition.
Definition: ServiceDefinition.h:20
virtual ~Responder()
Destructor.
bool advanceResult()
Formats the XML-RPC message.
virtual void onReady()
The service procedure has finished.
XML-RPC fault exception.
Definition: Fault.h:44
bool parseMessage()
Parses the XML-RPC message.
virtual void onResult()=0
The service procedure has finished.
void setFault(int rc, const char *msg)
Fails the service procedure.
bool isFailed() const
Indicates if the procedure has failed.
Dispatches requests to a service procedure.
Definition: Responder.h:50
virtual void onCancel()
Cancels all operations.
XML document node.
Definition: Node.h:51
void beginResult(std::ostream &os)
Formats the XML-RPC result.
Thread-safe event loop supporting I/O multiplexing and Timers.
Definition: EventLoop.h:74
Composes types during serialization.
Definition: Composer.h:43
void finishResult()
Formats the XML-RPC message.
virtual void onFault(const Fault &fault)=0
The service procedure has failed.
void finishMessage(System::EventLoop &loop)
Parses the XML-RPC message.