Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / June 2007

Tip: Looking for answers? Try searching our database.

Web Service giving The data at the root level is invalid error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jmgro - 15 Jun 2007 16:57 GMT
I created a web service in visual studio 2003, tested it with a sample.xml
file from a vendor we are using, and it worked exactly like it should.  I
depoloyed it to our server,  created a project calling the webservice with
the sample.xml file, and again it worked.  Now the vendor is calling the web
service from their application and receiving the following error, and stating
that there is something with the Web Service or the SOAP Client on my end
that is expecting the data differently then what it is :

?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Server was unable to process request. --> The data at  the root
level is invalid. Line 1, position 1.</faultstring>
<detail />
</soap:Fault>
</soap:Body>
</soap:Envelope>

Any suggestions?
John Saunders [MVP] - 15 Jun 2007 17:30 GMT
>I created a web service in visual studio 2003, tested it with a sample.xml
> file from a vendor we are using, and it worked exactly like it should.  I
[quoted text clipped - 22 lines]
>
> Any suggestions?

Line 1, position 1 is the first character of the data. I suspect they aren't
sending any data, or are sending it in the wrong XML namespace.

You should use your favorite network monitoring tool to see the exchange
between the client and server, then look at it and see how it differs from
your expectations.
Signature

John Saunders [MVP]

jmgro - 15 Jun 2007 18:02 GMT
They state that something in my environment is stripping the xml, so that is
why I am receiving it incorrectly.  My web service is running on Windows
Server 2003, my IIS version is 6.0.

> >I created a web service in visual studio 2003, tested it with a sample.xml
> > file from a vendor we are using, and it worked exactly like it should.  I
[quoted text clipped - 29 lines]
> between the client and server, then look at it and see how it differs from
> your expectations.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.