- 28 Mar 2024
- 3 Minutes to read
- Print
- DarkLight
- PDF
EDI Verification Tool Error Message: "XML document must have top level element"
- Updated on 28 Mar 2024
- 3 Minutes to read
- Print
- DarkLight
- PDF
When you run the EDI Verification Tool you receive the following error
"XML document must have top level element"
Clients should use the following steps to determine the problem and associated resolution
Internet Information Services Check that Internet Information Services is running
Open the control panel and then administrative tools
Double click on Services
Select the IIS Admin service and right click
Select start or restart from the drop down list
Ensure the World Wide Web service is started also
Re-test the EDI Verification tool and confirm that the test gets past the top level document error message. If it does not, go on to the next step.
IIS Security (optional step)
Open the Computer Management applet from Control Panel, Administrative Tools
Select Local Users and Groups from the list
Select Groups and edit the Administrators group
Click add and assign the local IUSR_xxx account to be an administrator of the local computer
Restart IIS from the command line using the command "iisreset"
Re-test the EDI Verification tool and confirm that the test gets past the top level document error message. If it does not, go on to the next step.
MIME Type Support
Open the Internet Services Manager, right-click the local computer name, and then click Properties.
Click MIME Types.
Click New.
In the Extension box, type the file name extension that you want (.wsdl).
In the MIME Type box, type text/xml.
Apply the new settings. IIS now serves files with the extension that you added.
Restart IIS from the command line using the words "iisreset"
Re-test the EDI Verification tool and confirm that the test gets past the top level document error message. If it does not, go on to the next step.
EDI Installation Checks WSDL/ASMX file
Open the location on the drive where IIS has been installed (default is c:\inetpub)
Select the following directory c:\inetpub\wwwroot\pharosedi\
Check that the following file is present pedi.asmx
Re-test the EDI Verification tool and confirm that the test gets past the top level document error message. If it does not, go on to the next step.
WSDL/ASMX File Information
Open the pedi.wsdl file using notepad.
Scroll to the bottom of the file and make sure the following line of text is present and correct <soap:address location="http://[server]/PharosEdi/Pedi.asmx">
Edit the information especially server name if it is incorrect. the file path should also be correct
Re-test the EDI Verification tool and confirm that the test gets past the top level document error message. If it does not, go on to the next step.
WSDL/ASMX Page Loading
Open Internet Explorer and browse to the following location
http://[server]/PharosEdi/Pedi.wsdl
Note: replace [server] with the name of the server EDI was installed on.
An XML page should be displayed in the browser window. If it does not then IIS is not correctly started. Restart the IIS services using "iisreset" from the command prompt
EDI Verification Tool WSDL/ASMX Path
When you run the EDI Verification tool check that the WSDL/ASMX http path that you are asked to enter is correct
http://[server]/PharosEdi/Pedi.wsdl
Again, replace [server] with the name of the server EDI was installed on.
Browser Proxy Check
Open Internet Explorer and select tools\internet options from the file menu
Select the Connections tab and the button "LAN Settings"
Uncheck any proxy's that are checked or check the "Bypass proxy server for local addresses"
Click ok, then ok again and restart the EDI Verification Tool
Re-test the EDI Verification tool and confirm that the test gets past the top level document error message. If it does not, go on to the next step.
.Net Framework Installation
Reinstall the .NET Framework running the following command aspnet_regiis.exe –i from the command line
The aspnet_regiis.exe can be found in the following location on disk
C:\WINDOWS\ Microsoft.NET \Framework\v2.0.50727
or
C:\WINDOWS\ Microsoft.NET \Framework\v1.1.4322
Re-test the EDI Verification tool and confirm that the test gets past the top level document error message. If it does not, go on to the next step.
Uninstall and Reinstall
Remove using Add and Remove Programs from the control panel both the Pharos EDI service and Internet Information Services
Reboot the server
Reinstall both programs in the following order
Internet Information Services
Pharos .NET EDI Service
Restart the Server (essential)
If the above fails to fix the problem, please contact Pharos Technical Support who will be able to assist you.