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;
Composes types during serialization.
Definition Composer.h:101
Manages the decomposition of types during serialization.
Definition Decomposer.h:121
Dispatches requests to a service procedure.
Definition Responder.h:50
Remote service definition.
Definition ServiceDefinition.h:59
XML-RPC fault exception.
Definition Fault.h:44
Responder(const ServiceDeclaration &decl, Remoting::ServiceDefinition &def)
Construct with Service declaration and definition.
virtual ~Responder()
Destructor.
virtual void onCancel()
Cancels all operations.
void beginMessage(std::istream &is)
Parses the XML-RPC message.
void beginResult(std::ostream &os)
Formats the XML-RPC result.
virtual void onReady()
The service procedure has finished.
void setFault(int rc, const char *msg)
Fails the service procedure.
bool advanceResult()
Formats the XML-RPC message.
bool parseMessage()
Parses the XML-RPC message.
void finishResult()
Formats the XML-RPC message.
bool isFailed() const
Indicates if the procedure has failed.
virtual void onFault(const Fault &fault)=0
The service procedure has failed.
virtual void onResult()=0
The service procedure has finished.
void finishMessage(System::EventLoop &loop)
Parses the XML-RPC message.
Event loop of a thread or process.
Definition EventLoop.h:83
Convert between unicode and UTF-8.
Definition Utf8Codec.h:44
XML document node.
Definition Node.h:51
Reads XML as a Stream of XML Nodes.
Definition XmlReader.h:80
SOAP services and clients.
Core module.
Definition Allocator.h:33