Qore xml Module 2.1.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.
 
hash< auto > serializeAllPartData (*hash< auto > val)
 serialize all values as string or binary
 
hash< auto > serializeData (*hash< auto > val, Namespaces nsc, string key)
 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
 
string checkPart (string pname)
 check if pname is defined as message part
 

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

◆ 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

◆ 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 ( *hash< auto >  val,
Namespaces  nsc,
string  key 
)

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

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