Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Invalid at the top level of the document

Thread Tools

Invalid at the top level of the document

Posts: n/a
I am trying to connect with a application to my webservice published
with an ISP. I get the following error when browsing for asmx?wsdl with IE
from my development PC:

The XML page cannot be displayed

Cannot view XML input using XSL style sheet. Please correct the error and
then click the Refresh button, or try again later.
Invalid at the top level of the document. Error processing resource

When I try and connect to it from VS.Net then I get the following error:

The document at the url was not
recognized as a known document type.
The error message from each known type may help you fix the problem:
- Report from 'WSDL Document' is 'There is an error in XML document (1,
- There is an unclosed literal string. Line 1, position 23304.
- Report from 'DISCO Document' is 'Discovery document at the URL could not be found.'.
- The document format is not recognized.
- Report from 'XML Schema' is 'Expected Schema root. Make sure that the root
element is <schema> and the namespace is ''
for an XSD schema or 'urn:schemas-microsoft-comml-data' for an XDR schema.
An error occurred at , (1, 41).'.

What do I need to do to resolve this issue?

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
XML document must have a top level element c676228 ASP General 11 03-24-2010 11:36 PM
Force a document to load at the top level janders Javascript 15 06-14-2006 10:00 AM
c is a low-level language or neither low level nor high level language pabbu C Programming 8 11-07-2005 03:05 PM
Detect which IFrame is trying to change the top level document href/URL? Robert Oschler Javascript 4 08-26-2003 04:20 PM
Reset focus to top level document after Back button hit? Robert Oschler Javascript 0 08-26-2003 03:53 PM