Qore xml Module 2.0.0
Loading...
Searching...
No Matches
WSDL::WSMessage Class Reference

web service message class More...

#include <WSDL.qm.dox.h>

Inheritance diagram for WSDL::WSMessage:
WSDL::XsdNamedData WSDL::XsdData WSDL::XsdBase

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
 
*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
 
*hash< auto > deserializeRpc (*hash< auto > mrh, hash< auto > val, *string part)
 deserialize RPC message
 
hash< auto > serializeAllPartData (*hash< auto > val)
 serialize all values as string or binary
 
hash< auto > serializeData (Namespaces nsc, string key, *hash< auto > val)
 serialized value of particular type value as string or binary
 
hash< auto > deserializeData (string part, hash< auto > val)
 deserialize value in string or binary form
 
hash< auto > deserializeAllPartData (hash< auto > val)
 deserialize all values in string or binary form
 
string checkPart (string pname)
 check if pname is defined as message part
 

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
 

Detailed Description

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).

Member Function Documentation

◆ checkPart()

string WSDL::WSMessage::checkPart ( string  pname)

check if pname is defined as message part

Returns
translated part name to element/type name

◆ deserializeAllPartData()

hash< auto > WSDL::WSMessage::deserializeAllPartData ( hash< auto >  val)

deserialize all values in string or binary form

Returns
hash of all parts in key-value pair

◆ deserializeData()

hash< auto > WSDL::WSMessage::deserializeData ( string  part,
hash< auto >  val 
)

deserialize value in string or binary form

Returns
hash<auto> in key-value pair

◆ deserializeRpc()

*hash< auto > WSDL::WSMessage::deserializeRpc ( *hash< auto >  mrh,
hash< auto >  val,
*string  part 
)

deserialize RPC message

Parameters
val,keysare element names or part names for simple types
partif exists then deserialize only particular part
Returns
serialized data, keys are wsdl element names (optionally part name is also possible) and part names for simple types

◆ serializeAllPartData()

hash< auto > WSDL::WSMessage::serializeAllPartData ( *hash< auto >  val)

serialize all values as string or binary

Returns
hash of all parts in key-value pair

◆ serializeData()

hash< auto > WSDL::WSMessage::serializeData ( Namespaces  nsc,
string  key,
*hash< auto >  val 
)

serialized value of particular type value as string or binary

Parameters
valvalue to be resolved
keymember name, it is requires reference to a simple type, not compaund element
Returns
as hash with 'value' and optional 'content-type' key passed from v.content-type if exists

◆ serializeDocument()

*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

Parameters
partsif present then serializes only particular element or part, if NOTHING then serializes all message elements
msginfoa description of the message for the current binding, if available
mpma multipart message object, for future use
encodedif the encoded use module should be used (or the literal use model)
hdata to be serialized, keys are wsdl element names (optionally part name is also possible) and part names for simple types
faultTrue if serializing a fault response

◆ serializeRpc()

*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

Parameters
partsif present then serializes only particular element or part, if NOTHING then serializes all message elements
msginfoa description of the message for the current binding, if available
n_namename of output key
encodedif the encoded use module should be used (or the literal use model)
hdata to be serialized, keys are wsdl element names (or optionally the part name) and part names for simple types
faultTrue if serializing a fault response

◆ serializeRpcValue()

auto WSDL::WSMessage::serializeRpcValue ( string  part,
bool  encoded,
reference< hash< auto > >  h,
reference< string >  ons 
)

Just serialize value and return namespace

Parameters
onsis reference to string

The documentation for this class was generated from the following file: