DRDE/AusRegEPPTK/se/AeDomainTransferRegistrantR...

38 lines
1.1 KiB
C++
Raw Normal View History

2013-12-31 19:36:07 +00:00
#include "se/AeDomainTransferRegistrantResponse.hpp"
#include "se/AeDomainObjectType.hpp"
#include "se/RegistrantTransferCommandType.hpp"
#include "se/EPPDateFormatter.hpp"
namespace {
const RegistrantTransferCommandType rtrnType;
const AeDomainObjectType aedomType;
} // anonymous namespace
using namespace std;
const string AeDomainTransferRegistrantResponse::AEDOM_NAME_EXPR =
"/e:epp/e:response/e:resData/aedom:rtrnData/aedom:name/text()";
const string AeDomainTransferRegistrantResponse::AEDOM_EX_DATE_EXPR =
"/e:epp/e:response/e:resData/aedom:rtrnData/aedom:exDate/text()";
AeDomainTransferRegistrantResponse::AeDomainTransferRegistrantResponse()
: DataResponse(&rtrnType, &aedomType)
{
}
void AeDomainTransferRegistrantResponse::fromXML(XMLDocument* xmlDoc) throw (ParsingException)
{
DataResponse::fromXML(xmlDoc);
if (!(resultArray[0].succeeded())) {
return;
}
name = xmlDoc->getNodeValue(AEDOM_NAME_EXPR);
std::string exDateStr = xmlDoc->getNodeValue(AEDOM_EX_DATE_EXPR);
2014-01-17 01:46:48 +00:00
exDate = std::auto_ptr<XMLGC::XMLGregorianCalendar>(
2013-12-31 19:36:07 +00:00
EPPDateFormatter::fromXSDateTime(exDateStr));
}