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

CorbaSoap Class Reference

Class implementing all the basic routines for converting SOAP to CORBA and vice versa. More...

#include <sbimpl.h>

Inheritance diagram for CorbaSoap:

AnyInterface SOAPBridge_SOAPCall_i List of all members.

Protected Methods

void DynAny2Xml (DOM_Document &doc, DOM_Node &node, SCParamValue *pParVal, DynamicAny::DynAny_ptr da, const char *ctxKey, bool needOuter=false) throw (DOM_Document &)
 Recurse through a filled-in DynAny and build the corresponding SOAP DOM. More...

void FillInDynAny (HrefIdMap &Map, SCParamValue *pParVal, DynamicAny::DynAny_ptr da, DOM_Element &elm) throw (DOM_Document &)
 Fill in a Dynamic Any from a DOM (subtree). More...

bool TypeConversion (DynamicAny::DynAny_ptr da, DOM_Element &elm, CString &Value, SCParamValue *pParVal, CORBA::TCKind kind) throw (DOM_Document &)
 Perform basic type conversions (DOM2CORBA). More...

bool TypeConversion (DynamicAny::DynAny_ptr da, DOM_Document &doc, DOM_Node &node, SCParamValue *pParVal, CORBA::TCKind kind) throw (DOM_Document &)
 Perform basic type conversions (CORBA2DOM). More...

 CorbaSoap ()
 protected constructor. More...

virtual ~CorbaSoap ()
 protected destructor. More...

virtual void aFault (FaultCode fCode, const char *fSubCode, const char *fString)=0
 error reporting. More...

virtual void CheckTag (char *cNam, DOM_Node &node)=0 throw (DOM_Document &)

Protected Attributes

SOAPBridge::ObjectContextManager_var ObjCtxMan
 Connection to the ObjectContextManager. More...


Detailed Description

Class implementing all the basic routines for converting SOAP to CORBA and vice versa.

Definition at line 43 of file sbimpl.h.


Constructor & Destructor Documentation

CorbaSoap::CorbaSoap ( ) [protected]
 

protected constructor.

Definition at line 614 of file SoapCall.cpp.

CorbaSoap::~CorbaSoap ( ) [inline, protected, virtual]
 

protected destructor.

Definition at line 59 of file sbimpl.h.


Member Function Documentation

virtual void CorbaSoap::CheckTag ( char * cNam,
DOM_Node & node ) throw (DOM_Document &) [protected, pure virtual]
 

Reimplemented in SOAPBridge_SOAPCall_i, and AnyInterface.

void CorbaSoap::DynAny2Xml ( DOM_Document & doc,
DOM_Node & node,
SCParamValue * pParVal,
DynamicAny::DynAny_ptr da,
const char * ctxKey,
bool needOuter = false ) throw (DOM_Document &) [protected]
 

Recurse through a filled-in DynAny and build the corresponding SOAP DOM.

Parameters:
doc   The SOAP DOM we are building.
node   The current node of the above DOM.
pParVal   The current parameter or NULL if not available (e.g. soap Faults).
da   The DynAny to dump.
ctxKey   The user's context key, if any.
needOuter   Signals that, in the case of a sequence or an array, we must insert an outer element.

Definition at line 442 of file SoapCall.cpp.

Referenced by SOAPBridge_SOAPCall_i::soapFault().

void CorbaSoap::FillInDynAny ( HrefIdMap & Map,
SCParamValue * pParVal,
DynamicAny::DynAny_ptr da,
DOM_Element & elm ) throw (DOM_Document &) [protected]
 

Fill in a Dynamic Any from a DOM (subtree).

If the structure and type of the DynAny and the DOM_Node are compatible, this function fills in da. Otherwise a SOAP Fault is thrown.

Parameters:
Map   href-id look-up map.
pParVal   Pointer to information regarding the parameter.
da   The DynAny to fill in.
elm   The DOM element(s) we are recursing.
Todo:
better handling of wstring and wchar.

test implementation of fixed.

Definition at line 703 of file SoapCall.cpp.

bool CorbaSoap::TypeConversion ( DynamicAny::DynAny_ptr da,
DOM_Document & doc,
DOM_Node & node,
SCParamValue * pParVal,
CORBA::TCKind kind ) throw (DOM_Document &) [protected]
 

Perform basic type conversions (CORBA2DOM).

Parameters:
da   The (positioned) DynAny that holds the value.
doc   The DOM document we are building.
elm   The DOM element that will hold the converted value.
pParVal   Holds the conversion specification, if any.
kind   The CORBA type the DynAny currently holds.
Returns:
True if this function created the element, false if the default conversion should be used.

Todo:
complete the rest of the conversions.

Definition at line 141 of file SoapCall.cpp.

bool CorbaSoap::TypeConversion ( DynamicAny::DynAny_ptr da,
DOM_Element & elm,
CString & Value,
SCParamValue * pParVal,
CORBA::TCKind kind ) throw (DOM_Document &) [protected]
 

Perform basic type conversions (DOM2CORBA).

Parameters:
da   The (positioned) DynAny to fill in.
elm   The DOM element that holds the value to convert.
Value   The (string) value of the above element.
pParVal   Holds the conversion specification, if any.
kind   The CORBA type the DynAny currently expecteds to get.
Returns:
True if this function filled in the DynAny, false if the default conversion should be used. Note that in the latter case the "Value" parameter may still have been modified.

Todo:
complete the rest of the conversions.

Definition at line 349 of file SoapCall.cpp.

void CorbaSoap::aFault ( FaultCode fCode,
const char * fSubCode,
const char * fString ) [protected, pure virtual]
 

error reporting.

Reimplemented in SOAPBridge_SOAPCall_i, and AnyInterface.


Member Data Documentation

SOAPBridge::ObjectContextManager_var CorbaSoap::ObjCtxMan [protected]
 

Connection to the ObjectContextManager.

Definition at line 47 of file sbimpl.h.


The documentation for this class was generated from the following files:
This documentation is part of the "SOAP to CORBA bridge" project
Copyright © 2000 by Lifeline Networks bv.
All rights are reserved.