protected override void ProcessDataNode(XmlDocument doc, XmlNamespaceManager namespaces)
        {
            namespaces.AddNamespace("domain", "urn:ietf:params:xml:ns:domain-1.0");

            var children = doc.SelectSingleNode("/ns:epp/ns:response/ns:resData/domain:trnData", namespaces);

            if (children != null)
            {
                var hostNode = children.SelectSingleNode("domain:name", namespaces);

                if (hostNode != null)
                {
                    DomainTransferResult = new DomainTransferResult { DomainName = hostNode.InnerText };

                    var crDateNode = children.SelectSingleNode("domain:crDate", namespaces);

                    if (crDateNode != null)
                    {
                        DomainTransferResult.CreatedDate = crDateNode.InnerText;
                    }

                    var exDateNode = children.SelectSingleNode("domain:expDate", namespaces);

                    if (exDateNode != null)
                    {
                        DomainTransferResult.ExpirationDate = exDateNode.InnerText;
                    }
                }
            }
        }
示例#2
0
        protected override void ProcessDataNode(XmlDocument doc, XmlNamespaceManager namespaces)
        {
            namespaces.AddNamespace("domain", "urn:ietf:params:xml:ns:domain-1.0");

            XmlNode children = doc.SelectSingleNode("/ns:epp/ns:response/ns:resData/domain:trnData", namespaces);

            if (children != null)
            {
                XmlNode hostNode = children.SelectSingleNode("domain:name", namespaces);

                if (hostNode != null)
                {
                    DomainTransferResult = new DomainTransferResult {
                        DomainName = hostNode.InnerText
                    };

                    XmlNode crDateNode = children.SelectSingleNode("domain:crDate", namespaces);

                    if (crDateNode != null)
                    {
                        DomainTransferResult.CreatedDate = crDateNode.InnerText;
                    }

                    XmlNode exDateNode = children.SelectSingleNode("domain:expDate", namespaces);

                    if (exDateNode != null)
                    {
                        DomainTransferResult.ExpirationDate = exDateNode.InnerText;
                    }
                }
            }
        }
示例#3
0
        protected override void ProcessDataNode(XmlDocument doc, XmlNamespaceManager namespaces)
        {
            namespaces.AddNamespace("domain", "urn:ietf:params:xml:ns:domain-1.0");

            var children = doc.SelectSingleNode("/ns:epp/ns:response/ns:resData/domain:trnData", namespaces);

            if (children != null)
            {
                var hostNode = children.SelectSingleNode("domain:name", namespaces);

                if (hostNode != null)
                {
                    DomainTransferResult = new DomainTransferResult {
                        DomainName = hostNode.InnerText
                    };

                    var crDateNode = children.SelectSingleNode("domain:crDate", namespaces);

                    if (crDateNode != null)
                    {
                        DomainTransferResult.CreatedDate = crDateNode.InnerText;
                    }

                    var exDateNode = children.SelectSingleNode("domain:exDate", namespaces);

                    if (exDateNode != null)
                    {
                        DomainTransferResult.ExpirationDate = exDateNode.InnerText;
                    }

                    var trStatus = children.SelectSingleNode("domain:trStatus", namespaces);

                    if (trStatus != null)
                    {
                        DomainTransferResult.Status = trStatus.InnerText;
                    }

                    var acDate = children.SelectSingleNode("domain:acDate", namespaces);

                    if (acDate != null)
                    {
                        DomainTransferResult.ActionDate = acDate.InnerText;
                    }

                    var acID = children.SelectSingleNode("domain:acID", namespaces);

                    if (acID != null)
                    {
                        DomainTransferResult.ActionClientId = acID.InnerText;
                    }

                    var reDate = children.SelectSingleNode("domain:reDate", namespaces);

                    if (reDate != null)
                    {
                        DomainTransferResult.RequestDate = reDate.InnerText;
                    }

                    var reID = children.SelectSingleNode("domain:reID", namespaces);

                    if (reID != null)
                    {
                        DomainTransferResult.RequestClientId = reID.InnerText;
                    }
                }
            }
        }