Main Page   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

HttpTransport Class Reference

The HTTP transport implementation for SOAP. More...

#include <HttpTransport.hpp>

Inheritance diagram for HttpTransport:

Transport List of all members.

Public Types

enum  Type
 HTTP category, Only POST is used currently, MPOST is not supported yet.


Public Methods

 ~HttpTransport ()
 Create HTTP transport with provided remote address as URL-string, set HTTP category default to POST.

 HttpTransport (std::string &strUrl, int secure)
 HttpTransport (Url url, int secure)
bool Init ()
 Initialize HTTP transport by establishing a channel to the remote end.

void Fini ()
bool GetStatus (const std::string &p_HttpPacket)
 Obtain the status of the HTTP packet validity.

void SetProperty (const char *p_Property, const char *p_Value)
 Set properties of HTTP transport such as additional Header fields like SOAPAction.

const Transportoperator>> (const char **pPayload)
 Read from a HTTP transport handler and store read payload.

const Transportoperator<< (const char *p_Payload)
 Write a given payload by using HTTP transport as carrier.

int getBodyLength ()
void setBodyLength (int bodyLength)
int getIsHttpHeader ()

Detailed Description

The HTTP transport implementation for SOAP.

Implements HTTP transport as SOAP-Envelop carrier, for sending/receiving SOAP messages with HTTP 1.1/1.0; This implementation abstract the Transport layer for the SOAP payloads


Constructor & Destructor Documentation

HttpTransport::~HttpTransport  
 

Create HTTP transport with provided remote address as URL-string, set HTTP category default to POST.

Shutdown any established channel

HttpTransport::HttpTransport std::string &    strUrl,
int    secure
 

Create HTTP transport with provided remote address as URL-string, set HTTP category default to POST

HttpTransport::HttpTransport Url    url,
int    secure
 

Create HTTP transport with provided URL as remote address, set HTTP category default to POST


Member Function Documentation

bool HttpTransport::GetStatus const std::string &    p_HttpPacket [virtual]
 

Obtain the status of the HTTP packet validity.

Obtain the status of the HTTP packet validity.

Parameters:
p_HttpPacket  HTTP packet
Returns:
Status of the HTTP packet validity.

Reimplemented from Transport.

bool HttpTransport::Init   [virtual]
 

Initialize HTTP transport by establishing a channel to the remote end.

Initialize HTTP transport by establishing a channel to the remote end.

Returns:
Status of the channel establishment to the remote end provided by m_Url @trows Channel Exception

Reimplemented from Transport.

const Transport & HttpTransport::operator<< const char *    p_Payload [virtual]
 

Write a given payload by using HTTP transport as carrier.

Write a given payload to the established channel by using HTTP transport as carrier.

Implements Transport.

const Transport & HttpTransport::operator>> const char **    pPayLoad [virtual]
 

Read from a HTTP transport handler and store read payload.

Read from a HTTP transport handler and store read payload.

Parameters:
p_Payload  SOAP Envelop as Payload for HTTP transport

Reimplemented from Transport.

void HttpTransport::SetProperty const char *    p_Property,
const char *    p_Value
[virtual]
 

Set properties of HTTP transport such as additional Header fields like SOAPAction.

Set properties of HTTP transport such as additional Header fields like SOAPAction.

Parameters:
p_Property  Property name; such as SOAPAction
p_Value  Property value

Implements Transport.


The documentation for this class was generated from the following files:
Generated on Fri Apr 9 12:21:29 2004 for axiscpp by doxygen1.2.18