diff --git a/epp-client/src/epp/object.rs b/epp-client/src/epp/object.rs index 295b142..ba4cb76 100644 --- a/epp-client/src/epp/object.rs +++ b/epp-client/src/epp/object.rs @@ -6,7 +6,7 @@ use epp_client_macros::*; use serde::{ser::SerializeStruct, Deserialize, Serialize, Serializer}; use std::fmt::Display; -use crate::epp::xml::{EPP_XMLNS, EPP_XMLNS_XSI, EPP_XSI_SCHEMA_LOCATION}; +use crate::epp::xml::EPP_XMLNS; /// Wraps String for easier serialization to and from values that are inner text /// for tags rather than attributes @@ -59,12 +59,6 @@ pub struct EmptyTag; pub struct EppObject { /// XML namespace for the <epp> tag pub xmlns: String, - /// Schema namespace for the <epp> tag - #[serde(rename = "xmlns:xsi")] - pub xmlns_xsi: String, - /// Schema location attribute for <epp> - #[serde(rename = "xsi:schemaLocation")] - pub xsi_schema_location: String, /// the request or response object that is set or received in the EPP XML document #[serde(alias = "greeting", alias = "response")] pub data: T, @@ -82,8 +76,6 @@ impl Serialize for EppObject { let mut state = serializer.serialize_struct("epp", 4)?; state.serialize_field("xmlns", &self.xmlns)?; - state.serialize_field("xmlns:xsi", &self.xmlns_xsi)?; - state.serialize_field("xsi:schemaLocation", &self.xsi_schema_location)?; state.serialize_field(data_name, &self.data)?; state.end() } @@ -158,8 +150,6 @@ impl EppObject { // xml: None, data, xmlns: EPP_XMLNS.to_string(), - xmlns_xsi: EPP_XMLNS_XSI.to_string(), - xsi_schema_location: EPP_XSI_SCHEMA_LOCATION.to_string(), } } } diff --git a/epp-client/src/epp/xml.rs b/epp-client/src/epp/xml.rs index 00ef46e..9f57080 100644 --- a/epp-client/src/epp/xml.rs +++ b/epp-client/src/epp/xml.rs @@ -8,8 +8,6 @@ use crate::error; pub const EPP_XML_HEADER: &str = r#""#; pub const EPP_XMLNS: &str = "urn:ietf:params:xml:ns:epp-1.0"; -pub const EPP_XMLNS_XSI: &str = "http://www.w3.org/2001/XMLSchema-instance"; -pub const EPP_XSI_SCHEMA_LOCATION: &str = "urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd"; pub const EPP_DOMAIN_XMLNS: &str = "urn:ietf:params:xml:ns:domain-1.0"; pub const EPP_CONTACT_XMLNS: &str = "urn:ietf:params:xml:ns:contact-1.0";