Exemplo n.º 1
0
// Send response in form of a SOAPMessage AND error status
void
WebServiceServer::SendResponse(SOAPMessage* p_response,int p_httpStatus)
{
  HTTPMessage* answer = new HTTPMessage(HTTPCommand::http_response,p_response);
  answer->SetStatus(p_httpStatus);
  m_httpServer->SendResponse(answer);
  answer->DropReference();

  // Do not respond with the original message
  p_response->SetHasBeenAnswered();
}