Skip to main content

detect_soap_fault

Function detect_soap_fault 

Source
pub fn detect_soap_fault(doc: &Value) -> Option<String>
Expand description

Detect a SOAP <Fault> under Envelope.Body in a converted document and return its message. Matching is namespace-prefix-insensitive (a fault under soap:Envelope.soap:Body.soap:Fault and one under a default-namespaced Envelope.Body.Fault are both detected). Returns None when there is no fault (the normal success path).