Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

XSECSOAPRequestorSimple Class Reference
[XML Key Management System Implementation]

#include <XSECSOAPRequestorSimple.hpp>

Inheritance diagram for XSECSOAPRequestorSimple:

Inheritance graph
[legend]
Collaboration diagram for XSECSOAPRequestorSimple:

Collaboration graph
[legend]
List of all members.

Detailed Description

Basic HTTP implementation for SOAP Requests.

The XKMS client code needs to be able to call on a SOAP requestor implementation that will handle wrapping the request in a SOAP msg and transporting it to the SOAP server. This class provides a very naieve implementation that wraps the message and does a basic HTTP POST to get the message to the end server.


Configuration methods

void setEnvelopeType (envelopeType et)
 Set the envelope type.

Public Types

enum  envelopeType {
  ENVELOPE_NONE,
  ENVELOPE_SOAP11,
  ENVELOPE_SOAP12
}

Public Member Functions

Constructors and Destructors
 XSECSOAPRequestorSimple (const XMLCh *uri)
 Constructor.
virtual ~XSECSOAPRequestorSimple ()
Interface methods
virtual XERCES_CPP_NAMESPACE_QUALIFIER
DOMDocument * 
doRequest (XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *request)
 Do a SOAP request.


Member Enumeration Documentation

enum XSECSOAPRequestorSimple::envelopeType
 

Envelope Enumeration

Enumeration values:
ENVELOPE_NONE 
ENVELOPE_SOAP11  No envelope - straight HTTP request
ENVELOPE_SOAP12  SOAP 1.2 envelope


Constructor & Destructor Documentation

XSECSOAPRequestorSimple::XSECSOAPRequestorSimple const XMLCh *  uri  ) 
 

Constructor.

Create a SOAP requestor that can be used to access a specific server

Parameters:
uri The URI of the server that will be accessed.
Note:
The URI must be http://...

virtual XSECSOAPRequestorSimple::~XSECSOAPRequestorSimple  )  [virtual]
 


Member Function Documentation

virtual XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument* XSECSOAPRequestorSimple::doRequest XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *  request  )  [virtual]
 

Do a SOAP request.

Performs a request based on the passed in DOM document and the indicated URI. The function is returns a pointer to the parsed result message (with the SOAP envelope removed)

Parameters:
request The DOM document containing the message to be wrapped and sent.
Returns:
The DOM document representing the result, with all SOAP headers removed

Implements XSECSOAPRequestor.

void XSECSOAPRequestorSimple::setEnvelopeType envelopeType  et  ) 
 

Set the envelope type.

The requestor can do a SOAP 1.1, SOAP 1.2 or no envelope around the message. This call allows the apllication to set the type.

By default, the requestor uses a SOAP 1.1 envelope

Parameters:
et - the type of envelope to use


The documentation for this class was generated from the following file:
Generated on Sun Jul 3 17:45:57 2005 for XML-Security-C by  doxygen 1.4.2