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 / Web Services / September 2006

Tip: Looking for answers? Try searching our database.

SoapHttpClientProtocol / InvalidOperationException

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
scott mcfadden - 12 Sep 2006 19:36 GMT
I am experiencing intermittent errors upon invoking my web service method.

Exception Type: System.InvalidOperationException
Exception Source: System.Xml
Exception Message: There is an error in XML document (1, 290).
Exception Stack Trace:    at
System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader,
String encodingStyle, XmlDeserializationEvents events)
  at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader
xmlReader, XmlDeserializationEvents events)
  at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader
xmlReader)
  at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean asyncCall)
  at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)

I suspect this means that IIS returned a HTML error instead of a well formed
SOAP response.  Is this correct?  What is the best way to track the real
source of this error?

.NET 1.1 client
.NET 1.1 server / Win2003 server

Thanks
Gaurav Vaish (www.EduJiniOnline.com) - 13 Sep 2006 17:12 GMT
> I suspect this means that IIS returned a HTML error instead of a well
> formed SOAP response.  Is this correct?  What is the best way to track the
> real source of this error?

Yes.
The response type is text/xml but XML is not comformant to what is given in
the WSDL.

btw, has the service definition changed on the server side? You may need to
regenerate the proxy...

Signature

Happy Hacking,
Gaurav Vaish | http://www.mastergaurav.com
http://www.edujinionline.com
http://articles.edujinionline.com/webservices
-------------------


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.