Public Member Functions

base_soap::SOAPHTTPTransport Class Reference

soap transport service via http More...

#include <libppbase/base_soap/SOAPHTTPTransport.h>

Inheritance diagram for base_soap::SOAPHTTPTransport:
base_soap::SOAPTransport

List of all members.

Public Member Functions

 SOAPHTTPTransport ()
 Constructor for a client.
 SOAPHTTPTransport (const base::String &name, base::Socket *sock, const base::String &addr)
 Constructor for a server.
virtual ~SOAPHTTPTransport ()
 Destructor.
SOAPResponseinvoke (SOAPRequest &request, bool throwex=true, int timeout=300)
 Executes a soap call.
SOAPResponseinvoke (SOAPRequest &request, const base::String &host, int port=0, bool throwex=true, int timeout=300)
 Executes a soap call.
SOAPRequestreadRequest ()
 Reads the next soap request from the client.
void sendResponse (const SOAPResponse *response)
 Sends a response from the server to the client.

Detailed Description

soap transport service via http

Author:
Christoph Schwarz
Version:
Id:
SOAPHTTPTransport.h 21 2010-09-05 04:18:17Z cschwarz1

Constructor & Destructor Documentation

base_soap::SOAPHTTPTransport::SOAPHTTPTransport ( const base::String name,
base::Socket sock,
const base::String addr 
)

Constructor for a server.

Parameters:
name server name
sock socket to client
addr client's ip address

Member Function Documentation

SOAPResponse* base_soap::SOAPHTTPTransport::invoke ( SOAPRequest request,
bool  throwex = true,
int  timeout = 300 
) [virtual]

Executes a soap call.

Parameters:
request the request to execute
throwex true if a remote error should cause an exception
timeout timeout in seconds
Returns:
the response to this call

Implements base_soap::SOAPTransport.

SOAPResponse* base_soap::SOAPHTTPTransport::invoke ( SOAPRequest request,
const base::String host,
int  port = 0,
bool  throwex = true,
int  timeout = 300 
) [virtual]

Executes a soap call.

Parameters:
request the request to execute
host the host name of the server, may include a port number
port the port number, if not included in the host
throwex true if a remote error should cause an exception
timeout timeout in seconds
Returns:
the response to this call

Implements base_soap::SOAPTransport.

SOAPRequest* base_soap::SOAPHTTPTransport::readRequest (  )  [virtual]

Reads the next soap request from the client.

Returns:
NULL if there are no more requests

Implements base_soap::SOAPTransport.

void base_soap::SOAPHTTPTransport::sendResponse ( const SOAPResponse response  )  [virtual]

Sends a response from the server to the client.

Parameters:
response the response to send

Implements base_soap::SOAPTransport.


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