xml - AWS route53 removing resource set -


i'm using dnscurl.pl recommended through amazon in order remove record sets route53. i'm running error can't figure out. route53 responding error: invalidinput. message: invalid xml ; cvc-elt.1: cannot find declaration of element 'changeresourcerecordsetsrequest'.

    <errorresponse xmlns="https://route53.amazonaws.com/doc/2012-02-29/">       <error><type>sender</type><code>invalidinput</code>         <message>invalid xml ; cvc-elt.1: cannot find declaration of element 'changeresourcerecordsetsrequest'.</message>       </error><requestid>51c5c1de-c246-11e2-b977-934c36c18aa7</requestid>             </errorresponse> 

my request follows:

    dnscurl.pl --keyname my_key_name -- -s -h "content-type: text/xml; charset=utf-8" -x post --upload-file /tmp/tmp.qeyxdpvpfh https://route53.amazonaws.com/2012-02-29/hostedzone/xxxxxxxxxx/rrset 

the xml file being used is:

    <?xml version="1.0" encoding="utf-8"?>       <changeresourcerecordsetsrequest xmlns="https://route53.amazonaws.com/doc/2012-12-12">         <changebatch>           <comment>deleting record staging.mysite.com. @ tue may 21 17:37:52 utc 2013</comment>           <changes>             <change><action>delete</action><resourcerecordset><name>staging.mysite.com.</name><type>a</type><aliastarget><hostedzoneid>xxxxxxxxxx</hostedzoneid><dnsname>awseb-e-s-awsebloa-xxxxxxxx-xxxxxxx.us-east-1.elb.amazonaws.com.</dnsname></aliastarget></resourcerecordset></change>              <change><action>delete</action><resourcerecordset><name>ec2.staging.mysite.com.</name><type>cname</type><ttl>300</ttl><resourcerecords><resourcerecord><value>ec2-xx.xx.xx.xx.compute-1.amazonaws.com</value></resourcerecord></resourcerecords></resourcerecordset></change>     </changes> </changebatch> 

i can't find information why xml invalid. checks through xml validators. ideas of go this?

thanks!

try changing this:

<changeresourcerecordsetsrequest xmlns="https://route53.amazonaws.com/doc/2012-12-12"> 

to this:

<changeresourcerecordsetsrequest xmlns="https://route53.amazonaws.com/doc/2012-12-12/"> 

Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -