oa_gateway_owp::session

Function publish_owp

Source
async fn publish_owp(
    session: &Session,
    warnings: &mut RouteWarnings,
    service_id: &str,
    topic: String,
    payload: String,
) -> Result<(), String>
Expand description

Maps one PUB onto one or two engine envelopes and publishes them.

A-GRA unwrap, XML baseline conversion, and validation all run before any publish, so a wrapper and its inner are all-or-nothing. Each envelope is stamped with owp.service_id and owp.conn_id.

ยงErrors

Returns a message for unwrap, type-hint, conversion, or reject-mode validation failures. Unroutable publishes are warned, not errors.