29 #ifndef Pt_Soap_Client_h
30 #define Pt_Soap_Client_h
32 #include <Pt/Soap/Api.h>
33 #include <Pt/Soap/Fault.h>
34 #include <Pt/Soap/Formatter.h>
35 #include <Pt/Remoting/Client.h>
36 #include <Pt/Xml/InputSource.h>
37 #include <Pt/Xml/XmlReader.h>
38 #include <Pt/Composer.h>
39 #include <Pt/Decomposer.h>
40 #include <Pt/Utf8Codec.h>
41 #include <Pt/TextStream.h>
50 class ServiceDeclaration;
59 Client(ServiceDeclaration& service);
67 bool isFailed()
const;
70 virtual void onBeginCall(
Composer& r, Pt::Remoting::RemoteCall& method,
Decomposer** argv,
unsigned argc);
72 virtual void onEndCall();
74 virtual void onCall(
Composer& r, Pt::Remoting::RemoteCall& method,
Decomposer** argv,
unsigned argc);
76 virtual void onCancel();
84 virtual void onBeginInvoke() = 0;
86 virtual void onEndInvoke() = 0;
93 virtual void onInvoke() = 0;
101 void beginMessage(std::ostream& os);
109 bool advanceMessage();
117 void finishMessage();
124 void beginResult(std::istream& is);
139 void processResult(std::istream& is);
147 void setFault(
int rc,
const char* msg);
186 ServiceDeclaration* _serviceDef;
187 const Operation* _op;
200 #endif // Pt_Soap_Client_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
A client for remote procedure calls.
Definition: Client.h:54
A client for remote procedure calls.
Definition: Client.h:47
Text output stream for unicode character conversion.
XML document node.
Definition: Node.h:50
Manages the decomposition of types during serialization.
Definition: Decomposer.h:43
Convert between unicode and UTF-8.
Definition: Utf8Codec.h:43