Basic domain check command implementation

This commit is contained in:
Martin Lensment 2014-06-27 17:46:03 +03:00
parent f8757891ef
commit cd52da3f8f
8 changed files with 49 additions and 9 deletions

View file

@ -1,3 +1,17 @@
xml.epp_head do
xml.bla
xml.response do
xml.result('code' => '1000') do
xml.msg 'Command completed successfully'
end
xml.resData do
xml.tag!('domain:chkData', 'xmlns:domain' => 'http://www.nic.cz/xml/epp/domain-1.4', 'xsi:schemaLocation' => 'http://www.nic.cz/xml/epp/domain-1.4 domain-1.4.xsd') do
xml.tag!('domain:cd') do
xml.tag!('domain:name', @domain, 'avail' => 1)
end
end
end
xml << render('/epp/shared/trID')
end
end

View file

@ -0,0 +1,4 @@
xml.trID do
xml.clTRID params[:clTRID]
xml.svTRID @svTRID
end