Qore xml Module
1.7.1
|
web service message class More...
Public Member Methods | |
AbstractDataProviderType | getDataProviderType () |
Returns the data provider type for this message. | |
auto | serializeRpcValue (string part, bool encoded, reference< hash< auto >> h, reference< string > ons) |
*hash< auto > | serializeRpc (*softlist< auto > parts, *WSDL::BindingMessageDescription msginfo, *MultiPartRelatedMessage mpm, string n_name, bool encoded, reference< auto > h, bool fault) |
serializes data into a hash with SOAP namespaces etc. with RPC-style messages More... | |
*hash< auto > | serializeDocument (*softlist< auto > parts, *WSDL::BindingMessageDescription msginfo, *MultiPartRelatedMessage mpm, bool encoded, reference< auto > h, bool fault) |
serializes data into a hash with SOAP namespaces etc. with document-style messages More... | |
*hash< auto > | deserializeRpc (*hash< auto > mrh, hash< auto > val, *string part) |
deserialize RPC message More... | |
hash< auto > | serializeAllPartData (*hash< auto > val) |
serialize all values as string or binary More... | |
hash< auto > | serializeData (Namespaces nsc, string key, *hash< auto > val) |
serialized value of particular type value as string or binary More... | |
hash< auto > | deserializeData (string part, hash< auto > val) |
deserialize value in string or binary form More... | |
hash< auto > | deserializeAllPartData (hash< auto > val) |
deserialize all values in string or binary form More... | |
string | checkPart (string pname) |
check if pname is defined as message part More... | |
Public Attributes | |
hash< string, hash< WSDL::ArgInfo > > | args |
args keys are part names for types reps. element names for element. Definition must provide unique values. | |
hash< string, string > | pmap |
maps part names to args key, all parts are in hash | |
hash< string, XsdAbstractType > | tmap |
type map | |
Public Attributes inherited from WSDL::XsdNamedData | |
*string | ns |
input namespace prefix (if any given) | |
descriptive_name | |
descriptive name flag | |
web service message class
Message definition consists of part definition. Part name is important for simple types to name it at both SOAP and Qore side (hash key). For elements is not used at the SOAP side, it implies condition the element name must be unique in message. In the other words it's forbidden definition of two parts with the same element. It's unclear if is legal in Wsdl and how to handle it. Class raises exception if detects it. The part name is also used for references from binding (header, content).
string WSDL::WSMessage::checkPart | ( | string | pname | ) |
check if pname is defined as message part
hash<auto> WSDL::WSMessage::deserializeAllPartData | ( | hash< auto > | val | ) |
deserialize all values in string or binary form
hash<auto> WSDL::WSMessage::deserializeData | ( | string | part, |
hash< auto > | val | ||
) |
deserialize value in string or binary form
*hash<auto> WSDL::WSMessage::deserializeRpc | ( | *hash< auto > | mrh, |
hash< auto > | val, | ||
*string | part | ||
) |
deserialize RPC message
val,keys | are element names or part names for simple types |
part | if exists then deserialize only particular part |
hash<auto> WSDL::WSMessage::serializeAllPartData | ( | *hash< auto > | val | ) |
serialize all values as string or binary
hash<auto> WSDL::WSMessage::serializeData | ( | Namespaces | nsc, |
string | key, | ||
*hash< auto > | val | ||
) |
serialized value of particular type value as string or binary
val | value to be resolved |
key | member name, it is requires reference to a simple type, not compaund element |
*hash<auto> WSDL::WSMessage::serializeDocument | ( | *softlist< auto > | parts, |
*WSDL::BindingMessageDescription | msginfo, | ||
*MultiPartRelatedMessage | mpm, | ||
bool | encoded, | ||
reference< auto > | h, | ||
bool | fault | ||
) |
serializes data into a hash with SOAP namespaces etc. with document-style messages
parts | if present then serializes only particular element or part, if NOTHING then serializes all message elements |
msginfo | a description of the message for the current binding, if available |
mpm | a multipart message object, for future use |
encoded | if the encoded use module should be used (or the literal use model) |
h | data to be serialized, keys are wsdl element names (optionally part name is also possible) and part names for simple types |
fault | True if serializing a fault response |
*hash<auto> WSDL::WSMessage::serializeRpc | ( | *softlist< auto > | parts, |
*WSDL::BindingMessageDescription | msginfo, | ||
*MultiPartRelatedMessage | mpm, | ||
string | n_name, | ||
bool | encoded, | ||
reference< auto > | h, | ||
bool | fault | ||
) |
serializes data into a hash with SOAP namespaces etc. with RPC-style messages
parts | if present then serializes only particular element or part, if NOTHING then serializes all message elements |
msginfo | a description of the message for the current binding, if available |
n_name | name of output key |
encoded | if the encoded use module should be used (or the literal use model) |
h | data to be serialized, keys are wsdl element names (or optionally the part name) and part names for simple types |
fault | True if serializing a fault response |
auto WSDL::WSMessage::serializeRpcValue | ( | string | part, |
bool | encoded, | ||
reference< hash< auto >> | h, | ||
reference< string > | ons | ||
) |
Just serialize value and return namespace
ons | is reference to string |