oa_gateway_owp::convert

Function transcode_wrapper_inner

Source
fn transcode_wrapper_inner(
    text: &str,
    schema: &Schema,
    want_xml: bool,
) -> Result<String, String>
Expand description

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.

Non-wrapper JSON is returned unchanged. want_xml is the inner format after conversion.

ยงErrors

Returns a message if the hex is not hexBinary or the inner document will not convert.