Main Page   Class Hierarchy   Compound List   File List   Compound Members  

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 { POST, MPOST }
 HTTP category, Only POST is used currently, MPOST is not supported yet.


Public Methods

 HttpTransport (Url url)
 Create HTTP transport with provided URL as remote address, set HTTP category default to POST.

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

 ~HttpTransport ()
bool Init ()
 Initialize HTTP transport by establishing a channel to the remote end. More...

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

void SetProperty (const std::string &p_Property, const std::string &p_Value)
 Set properties of HTTP transport such as additional Header fields like SOAPAction. More...

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

const Transportoperator<< (const std::string &p_Payload)
 Write a given payload by using HTTP transport as carrier. More...


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  
 

Shutdown any established channel


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 std::string &    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.

Reimplemented from 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 std::string &    p_Property,
const std::string &    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

Reimplemented from Transport.


The documentation for this class was generated from the following files:
Generated on Wed Dec 24 18:05:01 2003 for axisc++ by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002