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

xsoap::XSoap12Deserializer Class Reference

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

#include <XSoap12Deserializer.hpp>

List of all members.

Public Member Functions

 XSoap12Deserializer (const std::string &sin)
 Constructor.

bool eof ()
 return true if the end of the soap message is reached

bool endOfBody ()
 return true if the end of the soap body is reached

bool closeTag ()
 return true if the next token is a close tag

const char * getQnameUri (const char *qname)
 get the Uri for a prefiexed name

const char * getQnameLocal (const char *qname)
 get the local name for a prefiexed name

const xpp::StartTag * waitOpenTag (const proteus::QualifiedName &name, bool advance=true)
 Wait the specified open tag and deserialize it.

const xpp::StartTag * waitAnyOpenTag (bool advance=true)
 Wait the any open tag and deserialize it.

void waitCloseTag ()
 Wait the close tag matching the last open tag.

void beginEnv ()
 Wait the soap 1.2 envelope open tag.

void beginBody ()
 Wait the soap 1.2 body open tag.

void endEnv ()
 Wait the soap 1.2 envelope close tag.

void endBody ()
 Wait the soap 1.2 body close tag.

void beginHeader ()
 Wait the soap 1.2 header open tag.

void endHeader ()
 Wait the soap 1.2 header close tag.

template<typename T> T unpackPrimitive (const char *n)
 Wait an simple element with primitive type and deserialize it.

template<class T> void unpackGenericArray (const char *name, T *val, size_t *len)
 Wait and deserialize an xml message representing an soap encoding array.

void unpackBinaryArray (const char *name, char *val, size_t *len)
 Wait and deserialize an xml message representing an soap base64 encoding binary array.

virtual XSoap12DeserializerbeginVobject (const char *name, const char *type)
 Wait and deserialize the open tag for the Vobject.

XSoap12DeserializerbeginVobject (const proteus::QualifiedName &name, const char *type)
virtual void endVobject ()
 Wait and deserialize the close tag for the Vobject.

virtual XSoap12DeserializerunpackStdString (const char *name, std::string *)
 Wait and deserialize the simple element for a string.

virtual std::string unpackStdString (const char *name)
virtual XSoap12DeserializerunpackString (const char *name, char *, int *len)
virtual char * unpackString (const char *name)
virtual msl::Sptr< const wsit::Vobject > deserializeVobject ()
virtual msl::Sptr< const wsit::Vobject > deserializeVobject_untyped (const proteus::VobjectFactory &)

Public Attributes

xyzzy(int8) xyzzy(int16) xyzzy(int32) xyzzy(int64) xyzzy(uint8) xyzzy(uint16) xyzzy(uint32) xyzzy(uint64) xyzzy(float32) xyzzy(float64) private
boo 
matchTags )(xpp::StartTag &stag, xpp::EndTag &etag)


Detailed Description

The class for deserializing the Soap 1.2 message.

XSoap12DeSerializer is inherited from wsit::Deserializer, and it provides basic functions to deserialize the data from xml message into C++ data type based on Soap 1.2 encoding rules.


Constructor & Destructor Documentation

xsoap::XSoap12Deserializer::XSoap12Deserializer const std::string &  sin  ) 
 

Constructor.

Parameters:
sin: the string representing the xml doc


Member Function Documentation

void xsoap::XSoap12Deserializer::unpackBinaryArray const char *  name,
char *  val,
size_t *  len
 

Wait and deserialize an xml message representing an soap base64 encoding binary array.

Wait and deserialize an xml message representing an soap 1.2 encoding array

Parameters:
name: The expected element name,
val: The pointer to the array,
len: When calling, it is passed the size of allocated memory, and when returnning, it is passed the real size of deserailzed array

template<class T>
void xsoap::XSoap12Deserializer::unpackGenericArray const char *  name,
T *  val,
size_t *  len
 

Wait and deserialize an xml message representing an soap encoding array.

Wait and deserialize an xml message representing an soap 1.2 encoding array

Parameters:
name: The expected element name,
val: The pointer to the array,
len: When calling, it is passed the size of allocated memory, and when returnning, it is passed the real size of deserailzed array

string xsoap::XSoap12Deserializer::unpackPrimitive< string > const char *  n  ) 
 

Wait an simple element with primitive type and deserialize it.

Waiting an expected simple element and deserilize it

Parameters:
name: The expected element name,
Returns:
the value of the element

const xpp::StartTag * xsoap::XSoap12Deserializer::waitAnyOpenTag bool  advance = true  ) 
 

Wait the any open tag and deserialize it.

Waiting any open tag untile end of message is reached

Parameters:
advance: if true then the parser will adnvance to next token before returning, the default value is true

void xsoap::XSoap12Deserializer::waitCloseTag  ) 
 

Wait the close tag matching the last open tag.

Waiting the close tag matching the last open tag untile end of message is reached

const xpp::StartTag * xsoap::XSoap12Deserializer::waitOpenTag const proteus::QualifiedName &  name,
bool  advance = true
 

Wait the specified open tag and deserialize it.

Waiting an expected open tag untile the end of message is reached

Parameters:
name: The expected qualified name,
advance: if true then the parser will adnvance to next token before returning, the default value is true


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