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

void HttpSoapConnection::sendRequest ( SoapMessage message,
bool  urgent = false 
) [protected, virtual, inherited]

Send a SOAP request to the webservice.

This method adds a message to the sending queue. If the urgent parameter is true, the request is sent before all the other messages.

Parameters:
message The message to send.
urgent Whether the request needs to be sent before everything else.

Definition at line 392 of file httpsoapconnection.cpp.

References SoapMessage::getEndPoint(), HttpSoapConnection::requests_, and HttpSoapConnection::sendNextRequest().

Referenced by OfflineImService::getMessage(), OfflineImService::getMetaData(), PassportLoginService::requestMultipleSecurityTokens(), and PassportLoginService::sendSecureRequest().

{
#ifdef KMESSDEBUG_HTTPSOAPCONNECTION_GENERAL
  if( urgent )
  {
    kDebug() << "Immediately sending message to endpoint:" << message->getEndPoint();
  }
  else
  {
    kDebug() << "Queueing message to endpoint:" << message->getEndPoint();
  }
#endif

  if( urgent )
  {
    requests_.prepend( message );
  }
  else
  {
    requests_.append( message );
  }

  // Try sending the request now
  sendNextRequest();
}


Generated by  Doxygen 1.6.0   Back to index