Community Forum

Over the years we have built up a community of email marketers, coders and designers that live and breathe email.

Use the Email on Acid Forum like your virtual water cooler: Stop by to discuss email code, quirky clients and fixes and post your issues (with an example of the code) for our community to offer its assistance.

 
   
EOAException:InvalidXMLFormat Error

zcore

Newbie
Total Posts:  1
Posted: 06 June 2016 11:23 AM

Hi guys,

I am trying to get test the api for creating xml test (http://sandbox.emailonacid.com/v4/createTest/xml). The format of my xml is

<?xml version=“1.0” encoding=“utf-8” standalone=“yes”?>
<create_test>
  <content>
  <html>Base64 encoded HTML content</html>
  <url><![CDATA[http://..]]></url>
  <charset>utf-8</charset>
  <encoding>7bit</encoding>
  </content>
  <subject>Base64 encoded subject</subject>
  <free_test>true</free_test>
  <ios_fix>I</ios_fix>
  <test_id>danli</test_id>
  <user_guid>danli</user_guid>
  <spam_analysis>
  <subject>danlitest</subject>
  <from_address>EmailHere</from_address>
  <spam_type>smtp</spam_type>
  <seed_key></seed_key>
  <smtp_info>
    <smtp_host>SMTPhostHere</smtp_host>
    <smtp_port>25</smtp_port>
    <smtp_secure>ssl</smtp_secure>
    <smtp_acct>EmailHere</smtp_acct>
    <smtp_pass>PasswordHere/</smtp_pass>
    <smtp_from>EmailHere</smtp_from>
  </smtp_info>
  </spam_analysis>
</create_test>

I am not sure whats wrong with the xml. It looks identical to the one here https://api.emailonacid.com/docs/v4/apicalls/createTest

Does anybody know if Im using the api properly.


 

Geoff Phillips

Avatar
Sr. Member
Total Posts:  386
Posted: 07 June 2016 02:19 AM
[ # 1 ]

zcore,
Welcome to the Forum!

It looks like you’ve got a few placeholder values still in this code. Those will need to be replaced with the correct values to make the code functional. Unfortunately, we aren’t well equipped to answer questions about API coding over the forum. If you need more help with the API, please contact our support team here: https://www.emailonacid.com/contact

We’ll make sure you get the help you need.