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

ReadIR.cpp File Reference

More...

#include "SoapCorba.h"
#include "BridgeStub.h"
#include "DbObjects.h"
#include "ReadIR.h"
#include "RecurStop.h"
#include "anyconfig/AnyConfig.h"

Go to the source code of this file.

Functions

IRPLUS_H initIRPlus (CORBA_H cbaHdl, ANYCFG_H cfgHdl)
 Initialize the IRPlus module (src/IRPlus). More...

void termIRPlus (IRPLUS_H hdl)
 Terminate the IRPlus module (src/IRPlus). More...

const char* iterIRPlus (IRPLUS_H hdl, IRP_ITEM_H *itm)
 Iterate through the IRPlus methods. More...

void Add_IR_Comment (CString &xml, const char *kindName, CORBA::TypeCode_ptr tcp)
 Helper function for RecurseFields(). More...

void RecurseFields (CString &xml, TypeCodeList *tlist, CORBA::TypeCode_ptr tcp)
 Recurse down a DynAny and build sample SOAP XML. More...

void showTC (CString &xml, CORBA::TypeCode_ptr tc)
 Show a CORBA::TypeCode as sample SOAP XML. More...

bool GetSOAP (CString &xml_in, CString &xml_out, IRPLUS_H hdl, const char *interfaceMethod)
 Generate sample (SOAP) XML for a specific method. More...


Detailed Description

Definition in file ReadIR.cpp.


Function Documentation

void Add_IR_Comment ( CString & xml,
const char * kindName,
CORBA::TypeCode_ptr tcp ) [static]
 

Helper function for RecurseFields().

Definition at line 87 of file ReadIR.cpp.

Referenced by RecurseFields().

bool GetSOAP ( CString & xml_in,
CString & xml_out,
IRPLUS_H hdl,
const char * interfaceMethod )
 

Generate sample (SOAP) XML for a specific method.

Parameters:
xml_in   CString to fill in for the request.
xml_out   CString to fill in for the respons.
hdl   Handle obtained from initIRPlus().
interfaceMethod   Name of the method to build sample (SOAP) XML for.

Definition at line 457 of file ReadIR.cpp.

Referenced by SOAPBridge_SOAPCall_i::fetchSample().

void RecurseFields ( CString & xml,
TypeCodeList * tlist,
CORBA::TypeCode_ptr tcp )
 

Recurse down a DynAny and build sample SOAP XML.

Parameters:
xml   The string we are building.
tlist   List of TypeCode we've seen so far, to avoid infinite recursion.
tcp   The type code we are parsing.

Definition at line 103 of file ReadIR.cpp.

Referenced by showTC().

IRPLUS_H initIRPlus ( CORBA_H cbaHdl,
ANYCFG_H cfgHdl )
 

Initialize the IRPlus module (src/IRPlus).

Definition at line 32 of file ReadIR.cpp.

Referenced by main().

const char* iterIRPlus ( IRPLUS_H hdl,
IRP_ITEM_H * itm )
 

Iterate through the IRPlus methods.

Returns the currently known methods (i.e. SOAP Actions) from the IRPlus.

Parameters:
hdl   Handle obtained from initIRPlus()
itm   Handle to the last item, must be NULL on the first call
Returns:
A string pointer to the next method name or NULL if the end of the list was reached

Definition at line 67 of file ReadIR.cpp.

Referenced by SOAPBridge_SOAPCall_i::listActions().

void showTC ( CString & xml,
CORBA::TypeCode_ptr tc )
 

Show a CORBA::TypeCode as sample SOAP XML.

Parameters:
xml   The resulting XML.
tcp   The type code to show.

Definition at line 443 of file ReadIR.cpp.

Referenced by GetSOAP().

void termIRPlus ( IRPLUS_H hdl )
 

Terminate the IRPlus module (src/IRPlus).

Definition at line 50 of file ReadIR.cpp.


This documentation is part of the "SOAP to CORBA bridge" project
Copyright © 2000 by Lifeline Networks bv.
All rights are reserved.