DRDE/ACTK1_0/OTE/OteDomainTransferRegistrant...

38 lines
1.2 KiB
C++

#include "se/RegistrantTransferCommandType.hpp"
#include "se/EPPDateFormatter.hpp"
#include "OTE/OteDomainObjectType.hpp"
#include "OTE/OteDomainTransferRegistrantResponse.hpp"
namespace {
const RegistrantTransferCommandType rtrnType;
OteDomainObjectType otedomType;
} // anonymous namespace
using namespace std;
const string OteDomainTransferRegistrantResponse::OTEDOM_NAME_EXPR =
"/e:epp/e:response/e:resData/otedom:rtrnData/otedom:name/text()";
const string OteDomainTransferRegistrantResponse::OTEDOM_EX_DATE_EXPR =
"/e:epp/e:response/e:resData/otedom:rtrnData/otedom:exDate/text()";
OteDomainTransferRegistrantResponse::OteDomainTransferRegistrantResponse()
: DataResponse(&rtrnType, &otedomType)
{
}
void OteDomainTransferRegistrantResponse::fromXML(XMLDocument* xmlDoc) throw (ParsingException)
{
DataResponse::fromXML(xmlDoc);
if (!(resultArray[0].succeeded())) {
return;
}
name = xmlDoc->getNodeValue(OTEDOM_NAME_EXPR);
std::string exDateStr = xmlDoc->getNodeValue(OTEDOM_EX_DATE_EXPR);
exDate = std::auto_ptr<XMLGregorianCalendar>(
EPPDateFormatter::fromXSDateTime(exDateStr));
}