pub fn as_xml(&self, api_url: &str) -> String {
        let namespace = "api";

        let envelope = Element::node("soap:Envelope")
            .with_attr("xmlns:soap", "http://schemas.xmlsoap.org/soap/envelope/")
            .with_attr(format!("xmlns:{}", namespace), api_url)
            .with_children(vec![
                Element::node("soap:Header"),
                Element::node("soap:Body").with_child(
                    Element::node(format!("{}:{}", namespace, self.name))
                        .with_children_from_iter(self.args.iter()),
                ),
            ]);

        envelope.to_string()
    }
/// Convert method to full XML envelope.
Convert method to full XML envelope.
Convert method to full XML envelope .
pub fn as_xml(&self, api_url: &str) -> String {
        let namespace = "api";
        let envelope = Element::node("soap:Envelope")
            .with_attr("xmlns:soap", "http://schemas.xmlsoap.org/soap/envelope/")
            .with_attr(format!("xmlns:{}", namespace), api_url)
            .with_children(vec![
                Element::node("soap:Header"),
                Element::node("soap:Body").with_child(
                    Element::node(format!("{}:{}", namespace, self.name))
                        .with_children_from_iter(self.args.iter()),
                ),
            ]);
        envelope.to_string()
    }
pub fn as_xml ( & self , api_url : & str ) -> String { let namespace = " " ; let envelope = Element :: node ( " " ) . with_attr ( " " , " " ) . with_attr ( format ! ( " " namespace ) , api_url ) . with_children ( vec ! [ Element node ( " " ) Element node ( " " ) with_child ( Element node ( format ( " " namespace self name ) ) with_children_from_iter ( self args iter ( ) ) ) ] ) ; envelope . to_string ( ) }
Convert method to full XML envelope.
Convert method to full XML envelope .
&self
api_url
&str