Main Page | Class Hierarchy | Class List | File List | Class Members

xsoap::XSoap12Serializer Class Reference

The class for serializing the Soap 1.2 message. More...

#include <XSoap12Serializer.hpp>

List of all members.

Public Member Functions

 XSoap12Serializer (CommunicationChannel *com, const SerializationContext &context)
 Constructor.

void emitOpenTag (const proteus::QualifiedName &name, const proteus::QualifiedName &etype=proteus::QualifiedName(""), const attribute_list_t *attrs=NULL, bool close=false)
 Generate a open tag.

void emitOpenCloseTag (const proteus::QualifiedName &name, const proteus::QualifiedName &etype=proteus::QualifiedName(""), const attribute_list_t *attrs=NULL)
 Generate a empty element,like <a/>.

void emitCloseTag ()
 Generate close tag for last open tag.

void beginEnv ()
 Generate soap 1.2 envelope open tag.

void beginBody ()
 Generate soap 1.2 body open tag.

void endEnv ()
 Generate soap 1.2 envelope close tag.

void endBody ()
 Generate soap 1.2 body close tag.

void beginHeader ()
 Generate soap 1.2 header open tag.

void endHeader ()
 Generate soap 1.2 header close tag.

template<typename T> void packPrimitive (const char *n, T &v, bool needType=true)
 Generate a simple element for primitive type.

template<typename T> void packArray_k (const char *n, const T *val, size_t len)
 Generate a message for an array based on the soap 1.2 encoding rule.

void packBinaryArray (const char *n, const char *v, size_t len)
 Generate a message for an binary array based on the soap 1.2 encoding rule for base64.

XSoap12SerializerpackStdString (const char *n, const std::string &s)
 Generate a message for std::string.

XSoap12SerializerpackVobject (const char *n, const wsit::Vobject &v)
 Generate a message for wsit::Vobject.

virtual void serializeVobjectPart (const proteus::SVobjectPart &vp)
virtual void serializeMatterPart (const proteus::SMatterPart &vp)
virtual void serializeWormholeMatterPart (const proteus::SWormholeMatterPart &vp)
virtual void serializeVobject (const wsit::Vobject &)
virtual void serializeVobject_untyped (const wsit::Vobject &)
 xyzzy (int8) xyzzy(int16) xyzzy(int32) xyzzy(int64) xyzzy(uint8) xyzzy(uint16) xyzzy(uint32) xyzzy(uint64) xyzzy(float32) xyzzy(float64) virtual XSoap12Serializer &packString(const char *n
virtual void beginVobject (const proteus::QualifiedName &name, const wsit::Vobject &vo)
 Generate an open tag for the vobject, the function is inherited from wsit::Serializer.

virtual void endVobject ()
 Generate an close tag for the vobject, the function is inherited from wsit::Serializer.


Detailed Description

The class for serializing the Soap 1.2 message.

XSoap12Serializer is inherited from wsit::Serializer, and it provides basic functions to serialize the data into xml message based on Soap 1.2 encoding rules.


Constructor & Destructor Documentation

xsoap::XSoap12Serializer::XSoap12Serializer CommunicationChannel *  com,
const SerializationContext &  context
[inline, explicit]
 

Constructor.

Parameters:
com: a pointer pointing to the CommunicationChannel, the serializing result will be bound to the communiction chnnel;
context: serialization context of the serializing process;


Member Function Documentation

void xsoap::XSoap12Serializer::emitOpenCloseTag const proteus::QualifiedName &  name,
const proteus::QualifiedName &  etype = proteus::QualifiedName(""),
const attribute_list_t *  attrs = NULL
 

Generate a empty element,like <a/>.

Parameters:
name: the element name,
type: the element type and the default value is empty
attrs: the pointer to the attribute list and the default value is NULL,

void xsoap::XSoap12Serializer::emitOpenTag const proteus::QualifiedName &  name,
const proteus::QualifiedName &  etype = proteus::QualifiedName(""),
const attribute_list_t *  attrs = NULL,
bool  close = false
 

Generate a open tag.

Parameters:
name: the element name,
type: the element type and the default value is empty
attrs: the pointer to the attribute list and the default value is NULL,
close: if it is true, then a empty element will be generated and the default value is false

template<typename T>
void xsoap::XSoap12Serializer::packArray_k const char *  n,
const T *  val,
size_t  len
 

Generate a message for an array based on the soap 1.2 encoding rule.

Parameters:
name: the element name,
v: the pointer to the array,
len: the size of the array needed to be serialzied

void xsoap::XSoap12Serializer::packBinaryArray const char *  n,
const char *  v,
size_t  len
 

Generate a message for an binary array based on the soap 1.2 encoding rule for base64.

Parameters:
name: the element name,
v: the pointer to the array,
len: the size of the array needed to be serialzied

template<typename T>
void xsoap::XSoap12Serializer::packPrimitive const char *  n,
T &  v,
bool  needType = true
 

Generate a simple element for primitive type.

Parameters:
name: the element name,
v: the value,
needType: if true then the type will be generated in the open tag and default value is true

XSoap12Serializer & xsoap::XSoap12Serializer::packStdString const char *  n,
const std::string &  s
 

Generate a message for std::string.

Parameters:
name: the element name,
s: the string

XSoap12Serializer & xsoap::XSoap12Serializer::packVobject const char *  n,
const wsit::Vobject &  v
 

Generate a message for wsit::Vobject.

Parameters:
name: the element name,
v: the Vobject


The documentation for this class was generated from the following files:
Generated on Sat Jun 5 00:52:19 2004 for XSoap-C++ by doxygen 1.3.7