DRDE/ACTK1_0/OTE/OteDomainTransferRegistrant...

38 lines
1.2 KiB
C++
Raw Normal View History

2014-01-15 18:29:15 +00:00
#include "se/RegistrantTransferCommandType.hpp"
#include "se/EPPDateFormatter.hpp"
2014-01-17 01:46:48 +00:00
#include "OTE/OteDomainObjectType.hpp"
#include "OTE/OteDomainTransferRegistrantResponse.hpp"
2014-01-15 18:29:15 +00:00
2014-01-17 01:46:48 +00:00
namespace {
2014-01-15 18:29:15 +00:00
const RegistrantTransferCommandType rtrnType;
2014-01-15 21:41:16 +00:00
OteDomainObjectType otedomType;
2014-01-15 18:29:15 +00:00
} // anonymous namespace
using namespace std;
const string OteDomainTransferRegistrantResponse::OTEDOM_NAME_EXPR =
2014-01-15 21:41:16 +00:00
"/e:epp/e:response/e:resData/otedom:rtrnData/otedom:name/text()";
2014-01-15 18:29:15 +00:00
const string OteDomainTransferRegistrantResponse::OTEDOM_EX_DATE_EXPR =
2014-01-15 21:41:16 +00:00
"/e:epp/e:response/e:resData/otedom:rtrnData/otedom:exDate/text()";
2014-01-15 18:29:15 +00:00
OteDomainTransferRegistrantResponse::OteDomainTransferRegistrantResponse()
2014-01-15 21:41:16 +00:00
: DataResponse(&rtrnType, &otedomType)
2014-01-15 18:29:15 +00:00
{
}
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));
}