Library: Remoting/SoapLite
Package: SoapLite
Header: Poco/Remoting/SoapLite/Serializer.h
The Serializer implementation for the SoapLite Transport.
The serializer creates an XML stream according to SOAP 1.1 Document/Literal message format.
Direct Base Classes: Poco::Remoting::Serializer
All Base Classes: Poco::Remoting::Serializer
Member Functions: pushAttribute, resetImpl, serialize, serializeComplexTypeEnd, serializeComplexTypeStart, serializeError, serializeNullElement, serializeReplyEnd, serializeReplyStart, serializeRequestEnd, serializeRequestStart, serializeVectorBegin, serializeVectorEnd, setOutputStreamImpl
Inherited Functions: getProperty, hasProperty, popProperty, pushAttribute, pushProperty, reset, resetImpl, serialize, serializeComplexTypeEnd, serializeComplexTypeStart, serializeError, serializeNullElement, serializeReplyEnd, serializeReplyStart, serializeRequestEnd, serializeRequestStart, serializeVectorBegin, serializeVectorEnd, setOutputStream, setOutputStreamImpl
Serializer(
bool writeSOAPEnvelope,
bool prettyPrint = false
);
Creates the Serializer.
If writeSOAPEnvelope is set to true, messages will be written with a SOAP 1.1 envelope. If prettyPrint is true, XML messages will be pretty-printed.
~Serializer();
Destroys the Serializer.
void pushAttribute(
const std::string & attrNamespace,
const std::string & attrName
);
void serialize(
const std::string & name,
Poco::Int8 val
);
Serializes an Int8.
See also: Poco::Remoting::Serializer::serialize()
void serialize(
const std::string & name,
Poco::UInt8 val
);
Serializes an UInt8.
See also: Poco::Remoting::Serializer::serialize()
void serialize(
const std::string & name,
Poco::Int16 val
);
Serializes an Int16.
See also: Poco::Remoting::Serializer::serialize()
void serialize(
const std::string & name,
Poco::UInt16 val
);
Serializes an UInt16.
See also: Poco::Remoting::Serializer::serialize()
void serialize(
const std::string & name,
Poco::Int32 val
);
Serializes an Int32.
See also: Poco::Remoting::Serializer::serialize()
void serialize(
const std::string & name,
Poco::UInt32 val
);
Serializes an UInt32.
See also: Poco::Remoting::Serializer::serialize()
void serialize(
const std::string & name,
long val
);
Serializes a long.
See also: Poco::Remoting::Serializer::serialize()
void serialize(
const std::string & name,
unsigned long val
);
Serializes an unsigned long.
See also: Poco::Remoting::Serializer::serialize()
void serialize(
const std::string & name,
float val
);
Serializes a float.
See also: Poco::Remoting::Serializer::serialize()
void serialize(
const std::string & name,
double val
);
Serializes a double.
See also: Poco::Remoting::Serializer::serialize()
void serialize(
const std::string & name,
bool val
);
Serializes a boolean.
See also: Poco::Remoting::Serializer::serialize()
void serialize(
const std::string & name,
char val
);
Serializes a single character.
See also: Poco::Remoting::Serializer::serialize()
void serialize(
const std::string & name,
const char * pVal
);
Serializes a const char ptr.
See also: Poco::Remoting::Serializer::serialize()
void serialize(
const std::string & name,
const std::string & val
);
Serializes a string.
See also: Poco::Remoting::Serializer::serialize()
void serialize(
const std::string & name,
const std::vector < char > & val
);
Serializes a byte vector.
See also: Poco::Remoting::Serializer::serialize()
void serializeComplexTypeEnd(
const std::string & name
);
Invoked after all members of a complex data type were serialized.
void serializeComplexTypeStart(
const std::string & name
);
Invoked before a complex data type is serialized.
void serializeError(
std::ostream & out,
const std::string & methodName,
Poco::Exception & e
);
Serializes an exception.
void serializeNullElement(
const std::string & name
);
Serializes a null element.
void serializeReplyEnd(
const std::string & methodName
);
Indicates the end of method serialization.
void serializeReplyStart(
const std::string & methodName
);
Indicates the begin of method serialization reply.
void serializeRequestEnd(
const std::string & methodName
);
Indicates the end of method serialization.
void serializeRequestStart(
const std::string & methodName
);
Indicates the begin of method serialization.
void serializeVectorBegin(
const std::string & name,
Poco::UInt32 numElems
);
Called before the first element of a vector is serialized.
void serializeVectorEnd(
const std::string & name
);
Called after the last element of a vector was serialized.
void resetImpl();
See also: Poco::Remoting::Serializer::resetImpl()
void setOutputStreamImpl(
std::ostream & out
);
Manually sets the output stream. Required before one can use the serializer. Call reset to remove the outstream.
static const XML::AttributesImpl EMPTYATTRIBUTES;
static const XML::XMLString EMPTYSTRING;
static const XML::XMLString ENCODINGSTYLE;
static const XML::XMLString ENVELOPE;
static const XML::XMLString FAULT;
static const XML::XMLString FAULTCODE;
static const XML::XMLString FAULTCODESERVER;
static const XML::XMLString FAULTSTRING;
static const std::string REPLY;
static const XML::XMLString SOAPBODY;
static const XML::XMLString SOAPENCODINGNAMESPACE;
static const XML::XMLString SOAPHEADER;
static const XML::XMLString SOAPNAMESPACE;
static const XML::XMLString SOAPPREFIX;
static const XML::XMLString VAL_FALSE;
static const XML::XMLString VAL_TRUE;