EDI Verification Tool Error Message: "XML document must have top level element"
  • 28 Mar 2024
  • 3 Minutes to read
  • Dark
    Light
  • PDF

EDI Verification Tool Error Message: "XML document must have top level element"

  • Dark
    Light
  • PDF

Article summary

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

  1. Open the control panel and then administrative tools

  2. Double click on Services

  3. Select the IIS Admin service and right click

  4. Select start or restart from the drop down list

  5. 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)

  1. Open the Computer Management applet from Control Panel, Administrative Tools

  2. Select Local Users and Groups from the list

  3. Select Groups and edit the Administrators group

  4. Click add and assign the local IUSR_xxx account to be an administrator of the local computer

  5. 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

  1. Open the Internet Services Manager, right-click the local computer name, and then click Properties.

  2. Click MIME Types.

  3. Click New.

  4. In the Extension box, type the file name extension that you want (.wsdl).

  5. In the MIME Type box, type text/xml.

  6. Apply the new settings. IIS now serves files with the extension that you added.

  7. 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

  1. Open the location on the drive where IIS has been installed (default is c:\inetpub)

  2. Select the following directory c:\inetpub\wwwroot\pharosedi\

  3. 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

  1. Open the pedi.wsdl file using notepad.

  2. 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">

  3. 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

  1. 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.

  2. 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

  1. 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

  1. Open Internet Explorer and select tools\internet options from the file menu

  2. Select the Connections tab and the button "LAN Settings"

  3. Uncheck any proxy's that are checked or check the "Bypass proxy server for local addresses"

  4. 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

  1. 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

  1. Remove using Add and Remove Programs from the control panel both the Pharos EDI service and Internet Information Services

  2. Reboot the server

  3. Reinstall both programs in the following order

    1. Internet Information Services

    2. Pharos .NET EDI Service

  4. Restart the Server (essential)

If the above fails to fix the problem, please contact Pharos Technical Support who will be able to assist you.


Was this article helpful?


Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.