Logo Search packages:      
Sourcecode: kmess version File versions  Download package

HttpSoapConnection Class Reference
[network/soap]

#include <httpsoapconnection.h>

Inheritance diagram for HttpSoapConnection:

MsnAppDirectoryService PassportLoginService AddressBookService OfflineImService

List of all members.


Detailed Description

SOAP transport over a HTTP connection.

The SOAP protocol is used to implement webservices. It's commonly used by .Net applications, MSN Messenger is not an exception here. SOAP is used for new features like:

The class implements SOAP at a basic level.

To use this class, extend it to implement method wrappers for the SOAP calls. A request can be sent with sendRequest(). The response is received as SoapMessage in parseSoapResult(): overwrite parseSoapResult() to handle the normal responses, and parseSoapFault() for the error responses.

Author:
Diederik van der Boor

Valerio Pilo

Definition at line 67 of file httpsoapconnection.h.


Signals

void soapError (QString error, MsnSocketBase::ErrorType type)
 Fired when a fatal error occured.
void soapWarning (const QString &warning, bool isImportant)
 Fired when the user needs to be notified about a problem.

Public Member Functions

void abort ()
 Abort all queued requests.
 HttpSoapConnection (QObject *parent=0)
 The constructor.
bool isIdle ()
 Return whether the connection is idle.
virtual ~HttpSoapConnection ()
 The destructor.

Protected Member Functions

SoapMessagegetCurrentRequest (bool copy=false) const
 Return the current request message, if any.
virtual void parseSoapFault (SoapMessage *message)
 Parse the SOAP fault.
virtual void parseSoapResult (SoapMessage *message)=0
virtual void sendRequest (SoapMessage *message, bool urgent=false)
 Send a SOAP request to the webservice.
QString textNodeDecode (const QString &string)
 Decode UTF-8 text from a SOAP node (usually friendly names).

Private Slots

void sendNextRequest ()
 Send the next request in queue to the endpoint.
void slotAuthenticationRequired (QNetworkReply *reply, QAuthenticator *authenticator)
 Called when the remote server requires authentication.
void slotRequestFinished (QNetworkReply *reply)
void slotRequestTimeout ()
 Called when a timeout occurred while sending a request.
void slotSslErrors (QNetworkReply *reply, const QList< QSslError > &sslErrors)
 Called when an ssl error occurred while setting up the connection.

Private Attributes

SoapMessagecurrentRequest_
 The current request which is being processed.
QNetworkAccessManager * http_
 The connection manager.
bool isSending_
 Whether a message is being sent or not.
QHash< QString, int > redirectionCounts_
 The redirection counter for each redirection.
QHash< QString, QString > redirections_
 The list of redirections.
QList< SoapMessage * > requests_
 The queue of active requests.
QTimer responseTimer_
 Timer used to detect timeouts when sending requests.
QString soapAction_
 The last SOAP action.

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index