38 lines
1012 B
C++
38 lines
1012 B
C++
|
#include "se/OteDomainTransferRegistrantResponse.hpp"
|
||
|
#include "se/OteDomainObjectType.hpp"
|
||
|
#include "se/RegistrantTransferCommandType.hpp"
|
||
|
#include "se/EPPDateFormatter.hpp"
|
||
|
|
||
|
namespace {
|
||
|
const RegistrantTransferCommandType rtrnType;
|
||
|
*otedomType;
|
||
|
} // anonymous namespace
|
||
|
|
||
|
using namespace std;
|
||
|
|
||
|
const string OteDomainTransferRegistrantResponse::OTEDOM_NAME_EXPR =
|
||
|
*otedom:name/text()";
|
||
|
|
||
|
const string OteDomainTransferRegistrantResponse::OTEDOM_EX_DATE_EXPR =
|
||
|
*otedom:exDate/text()";
|
||
|
|
||
|
OteDomainTransferRegistrantResponse::OteDomainTransferRegistrantResponse()
|
||
|
*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));
|
||
|
}
|
||
|
|