KD SOAP
1.7.0
|
#include <KDSoapServerRawXMLInterface.h>
Public Member Functions | |
KDSoapServerRawXMLInterface () | |
virtual | ~KDSoapServerRawXMLInterface () |
virtual bool | newRequest (const QByteArray &requestType, const QMap< QByteArray, QByteArray > &httpHeaders) |
virtual void | processXML (const QByteArray &xmlChunk) |
virtual void | endRequest () |
Additional interface for processing incoming XML directly, without the use of KDSoapMessage.
In addition to deriving from KDSoapServerObjectInterface, you can derive from KDSoapServerRawXMLInterface in order to handle XML as it comes in.
Use Q_INTERFACES(KDSoapServerRawXMLInterface) in your derived class (under Q_OBJECT) so that Qt can discover the additional inheritance.
This can be useful for pre-processing invalid XML, or for handling very large requests (received in chunks) in an incremental way, saving memory compared to the usual buffering of the entire request.
KDSoapServer will receive all HTTP headers, call newRequest(), call processXML() for every chunk of XML, and finally call endRequest(). Use writeHTTP() or writeXML() (from KDSoapServerObjectInterface) to reply back.
KDSoapServerRawXMLInterface::KDSoapServerRawXMLInterface | ( | ) |
Constructor
|
virtual |
Destructor
|
inlinevirtual |
Called when starting to receive a new request.
requestType | GET or POST |
httpHeaders | the map of http headers (keys have been lowercased since they are case insensitive) |
|
inlinevirtual |
Called with the chunks of XML data as they come in
|
inlinevirtual |
Called at the end of the request. Use writeHTTP() or writeXML() (from KDSoapServerObjectInterface) to reply back.