HYPERSCRIPT, SECS, and XML.
Suppose there is a SECS event, described with HyperScript as follows:
list 'S5F65' = {
binary 'BN_0'[1] = 0x40,
ushort 'UW_1'[1] = 191,
char 'A_2'[54] = "150205080201FNN2LFNN2_039604N2001Abnormal event occur "
} ;
First we merge the raw SECS data with a descriptor...
list ev = {
binary code,
ushort id,
char reason[80]
} ;
list e = merge ( ev, S5F65 ) ;
And get a more descriptive result:
describe e ;
list 'e' = {
binary 'code'[1] = {0x40},
ushort 'id'[1] = {191},
char 'reason'[54] = { "150205080201FNN2LFNN2_039604N2001Abnormal event occur ",}
};
If we describe it as XML:
xdescribe e ;
<e>
<code>0x40</code>
<id>191</id>
<reason>150205080201FNN2LFNN2_039604N2001Abnormal event occur </reason>
</e>
It can then be packaged in as a SOAP envelope and transport it across the web.