Skip to main content

route

Function route 

Source
pub fn route<'a>(
    table: &'a DispatchTable,
    body_first_child_qname: &QName,
    soap_action: Option<&str>,
) -> Result<&'a DispatchEntry, SoapFault>
Expand description

Route an incoming request to its handler.

Tries by_element lookup first (document/literal dispatch by body first-child QName). Falls back to by_action if soap_action is provided and body-QName lookup fails. Returns Err(SoapFault) with FaultCode::Sender if no match is found.