oa_gateway_owp

Module convert

Source
Expand description

JSON โ†” XML at the socket, plus A-GRA EncodedPayload hex.

Functionsยง

  • decode_hex ๐Ÿ”’
    Decodes hexBinary, ignoring ASCII whitespace.
  • encode_hex_upper ๐Ÿ”’
    Encodes bytes as uppercase hex with no whitespace.
  • hex_nibble ๐Ÿ”’
  • toward_xml ๐Ÿ”’
    Converts env to UCI XML when it is OMS JSON.
  • A-GRA EncodedPayload is opaque hex. OWP clients put OMS JSON in it; MA parses XML. xml_baseline has to convert the inner the same way it converts the wrapper, or MA logs expected XML and drops the path.
  • violations_of ๐Ÿ”’
    Everything in payload that schema does not permit.
  • xml_to_oms_json ๐Ÿ”’
    Convert a payload the engine carried in XML into the OMS JSON a client subscribed for.