<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic I am seeing the issue as well in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/XML-Problem-E00003-Root-Element-Is-Missing/m-p/31768#M16541</link>
    <description>&lt;P&gt;Hello, I am also getting a XML error when hitting the URL:&amp;nbsp;&lt;A href="https://apitest.authorize.net/soap/v1/Service.asmx?wsdl." target="_blank"&gt;https://apitest.authorize.net/soap/v1/Service.asmx?wsdl.&lt;/A&gt; As the other user is also seeing, it looks like an issue with the sandbox. The type of error that I am seeing is usually associated with an invalid SSL certificate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mind you, as of last week, this code was working.....this error has only occurred within the past few days. I am consuming this WSDL location directly using PHP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone on the Authorize.NET side check the server logs and check the security layer for issues or any of the problems that may be occurring server-side?&lt;/P&gt;</description>
    <pubDate>Wed, 28 Nov 2012 13:46:01 GMT</pubDate>
    <dc:creator>JoMo1970</dc:creator>
    <dc:date>2012-11-28T13:46:01Z</dc:date>
    <item>
      <title>XML Problem: E00003 Root Element Is Missing</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/XML-Problem-E00003-Root-Element-Is-Missing/m-p/31538#M16433</link>
      <description>&lt;P&gt;Hi. I'm trying to figure out an XML error that has me stuck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am actually trying to retrieve order information from inside an Excel spreadsheet using VBA.&amp;nbsp; I know, it isn't the greatest platform, but it's what I have to work with for this particular task.&amp;nbsp; At any rate:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the code I have.&amp;nbsp; I have verified that it can send good XML by sending it to my own web page and verifying that the function sends and receives properly.&amp;nbsp; When I try to get an Unsettled Transaction List from Authorize.NET, however, it fails with an &lt;STRONG&gt;E00003 Root Element Is Missing&lt;/STRONG&gt; error.&amp;nbsp; Here's my code:&lt;/P&gt;&lt;PRE&gt;Private Sub getUnsettledTransactions_Click()
    Worksheets("Sheet1").Range("B49") = "" 'Where I show the sent XML
    Worksheets("Sheet1").Range("B53") = "" 'Where I show what's received back
    
    'HTTP variable
    Dim myHTTP As MSXML2.XMLHTTP
    
    'HTTP object
    Set myHTTP = CreateObject("msxml2.xmlhttp")
    
    'create dom document variable, stores the xml to send
    Dim myDom As MSXML2.DOMDocument
    
    'Create the DomDocument Object
    Set myDom = CreateObject("MSXML2.DOMDocument")
    
    'Load entire Document before moving on
    myDom.async = False
    
    'xml string variable
    Dim myxml As String&lt;BR /&gt;    
    myxml = "&amp;lt;?xml version=""1.0""?&amp;gt;" &amp;amp; _
        "&amp;lt;getUnsettledTransactionListRequest xmlns=""AnetApi/xml/v1/schema/AnetApiSchema.xsd""&amp;gt;" &amp;amp; _
        "&amp;lt;merchantAuthentication&amp;gt;" &amp;amp; _
        "&amp;lt;name&amp;gt;12345&amp;lt;/name&amp;gt;" &amp;amp; _
        "&amp;lt;transactionKey&amp;gt;12345&amp;lt;/transactionKey&amp;gt;" &amp;amp; _
        "&amp;lt;/merchantAuthentication&amp;gt;" &amp;amp; _
        "&amp;lt;/getUnsettledTransactionListRequest&amp;gt;"
    
    Worksheets("Sheet1").Range("B49") = myxml 'Write the XML to be sent
    
    'open the connection
    myHTTP.Open "post", "&lt;A href="https://apitest.authorize.net/xml/v1/request.api" target="_blank"&gt;https://apitest.authorize.net/xml/v1/request.api&lt;/A&gt;", False
    
    myHTTP.setRequestHeader "Content-Type", "text/xml"
    myHTTP.setRequestHeader "Content-Length", Len(myxml)
    
    'send the XML
    myHTTP.Send (myDom.XML)
    
    'Display the response
    Worksheets("Sheet1").Range("B53") = myHTTP.ResponseText 'XML we get back
End Sub&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;And here's the XML error I get back:&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&lt;BR /&gt;&amp;lt;ErrorResponse xmlns:xsi="&lt;A href="http://www.w3.org/2001/XMLSchema-instance" target="_blank"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;" xmlns:xsd="&lt;A href="http://www.w3.org/2001/XMLSchema" target="_blank"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt;&lt;BR /&gt;&amp;lt;messages&amp;gt;&lt;BR /&gt;     &amp;lt;resultCode&amp;gt;Error&amp;lt;/resultCode&amp;gt;&lt;BR /&gt;     &amp;lt;message&amp;gt;&lt;BR /&gt;          &amp;lt;code&amp;gt;E00003&amp;lt;/code&amp;gt;&lt;BR /&gt;          &amp;lt;text&amp;gt;Root element is missing.&amp;lt;/text&amp;gt;&lt;BR /&gt;     &amp;lt;/message&amp;gt;&lt;BR /&gt;&amp;lt;/messages&amp;gt;&lt;BR /&gt;&amp;lt;/ErrorResponse&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;OK, so just to do a sanity check, I try doing the same thing in Python.&amp;nbsp; That checks to make sure I have that functionality turned on in my Authorize.net test account.&amp;nbsp; The code below works well (in Python), and I successfully get an XML list of unsettled transactions.&lt;/P&gt;&lt;PRE&gt;import sys, httplib
 
def do_requests(request):
    webservice = httplib.HTTPS(HOST)
    webservice.putrequest("POST", API_URL)
    webservice.putheader("Host", HOST)
    webservice.putheader("Content-type", "text/xml; charset=\"UTF-8\"")
    webservice.putheader("Content-length", "%d" % len(request))
    webservice.endheaders()
    webservice.send(request)
    statuscode, statusmessage, header = webservice.getreply()
    result = webservice.getfile().read()
    print "------------------------------------------"
    print statuscode, statusmessage, header
    print "------------------------------------------"
    print result
    print "------------------------------------------"

print "Send a getUnsettledTransactionListRequest to Authorize.net:"

HOST = "apitest.authorize.net"
API_URL = '/xml/v1/request.api'

myxml = '&amp;lt;?xml version="1.0"?&amp;gt;&amp;lt;getUnsettledTransactionListRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt;&amp;lt;merchantAuthentication&amp;gt;&amp;lt;name&amp;gt;1234&amp;lt;/name&amp;gt;&amp;lt;transactionKey&amp;gt;1234&amp;lt;/transactionKey&amp;gt;&amp;lt;/merchantAuthentication&amp;gt;&amp;lt;/getUnsettledTransactionListRequest&amp;gt;'

do_requests(myxml)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Other than a few bad characters at the front of the output (probably a Python 2.7 ascii vs. unicode problem), I get the XML output just fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions or advice would be appreciated.&amp;nbsp; Why does it work in the Python example, but not in my Excel/VBA example?&amp;nbsp; Is there another header I need?&amp;nbsp; What does that "Root Element Is Missing" actually mean?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The VBA script seems to send the complete XML text well to my test page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2012 21:40:43 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/XML-Problem-E00003-Root-Element-Is-Missing/m-p/31538#M16433</guid>
      <dc:creator>MCKJ</dc:creator>
      <dc:date>2012-11-16T21:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: XML Problem: E00003 Root Element Is Missing</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/XML-Problem-E00003-Root-Element-Is-Missing/m-p/31540#M16434</link>
      <description>&lt;P&gt;I think you forgot the&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;myDom.Load (myxml)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;before the&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;myHTTP.Send (myDom.XML)&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2012 22:12:01 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/XML-Problem-E00003-Root-Element-Is-Missing/m-p/31540#M16434</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2012-11-16T22:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: XML Problem: E00003 Root Element Is Missing</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/XML-Problem-E00003-Root-Element-Is-Missing/m-p/31570#M16449</link>
      <description>&lt;P&gt;Thanks for the quick answer.&amp;nbsp; I'm rookie enough with doing this that the answer could be that simple.&amp;nbsp; Unfortunately, that didn't fix it.&amp;nbsp; I inserted the &lt;STRONG&gt;myDom.Load (myxml)&lt;/STRONG&gt; before the &lt;STRONG&gt;myHTTP.Send (myDom.XML)&lt;/STRONG&gt; as you suggested, and it didn't make a difference.&amp;nbsp; I still get the &lt;STRONG&gt;E00003 Root Element Is Missing&lt;/STRONG&gt; error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your reply prompted me to take a fresh, thorough look for any differences between my (even simpler) working example and this particular non-working code.&amp;nbsp; Sure enough, I had commented out the line:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;myDom.loadXML (myxml)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I put that in and it works like a charm.&amp;nbsp; Thanks for getting me back on track!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2012 20:18:07 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/XML-Problem-E00003-Root-Element-Is-Missing/m-p/31570#M16449</guid>
      <dc:creator>MCKJ</dc:creator>
      <dc:date>2012-11-19T20:18:07Z</dc:date>
    </item>
    <item>
      <title>I am seeing the issue as well</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/XML-Problem-E00003-Root-Element-Is-Missing/m-p/31768#M16541</link>
      <description>&lt;P&gt;Hello, I am also getting a XML error when hitting the URL:&amp;nbsp;&lt;A href="https://apitest.authorize.net/soap/v1/Service.asmx?wsdl." target="_blank"&gt;https://apitest.authorize.net/soap/v1/Service.asmx?wsdl.&lt;/A&gt; As the other user is also seeing, it looks like an issue with the sandbox. The type of error that I am seeing is usually associated with an invalid SSL certificate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mind you, as of last week, this code was working.....this error has only occurred within the past few days. I am consuming this WSDL location directly using PHP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone on the Authorize.NET side check the server logs and check the security layer for issues or any of the problems that may be occurring server-side?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2012 13:46:01 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/XML-Problem-E00003-Root-Element-Is-Missing/m-p/31768#M16541</guid>
      <dc:creator>JoMo1970</dc:creator>
      <dc:date>2012-11-28T13:46:01Z</dc:date>
    </item>
  </channel>
</rss>

