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 / April 2006

Tip: Looking for answers? Try searching our database.

Error 500 - 'text/html'...expected 'text/xml' (string overflow?)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jon - 07 Apr 2006 02:11 GMT
Anyone seen a webservice return this error:

Error: Client found response content type of 'text/html;charset=utf-8', but
expected 'text/xml'.
The request failed with the error message:
--Error 500:--

I'm hitting a web service which retuns XML data in a string.  It works fine
for smaller requests (300K for example)

When I hit this web service and request all the data (~7M) I get that error
above.  I only know it's approx. 7M because it use to work and only started
failing recently.

Is there a limit on the size of the string the webservice can return?

I also ran a TCP packet trace on a success vs a failure and what's
interesting is that the failure has way less packets ~35 compared to the
success with over 150.
Robert May - 10 Apr 2006 18:49 GMT
Jon,

Yes, I have seen this before and it was caused by the result being to large.
To fix it, I had to compress the results of the xml data I was passing.  We
also set up a url where they could download it directly, instead of passing
the entire thing back in the web service.

We didn't ever report it to anyone, so I'm not sure if this is a bug,
desired behavior, or what.

Robert May
> Anyone seen a webservice return this error:
>
[quoted text clipped - 19 lines]
> interesting is that the failure has way less packets ~35 compared to the
> success with over 150.
Jon - 10 Apr 2006 19:03 GMT
Thanks Robert,

Does anyone know the limit on the size of the string the webservice can
return?
I suppose one way to resolve this would be to ask that the webservice
provider change the response type to a stream, but I've heard setting up a
stream in a webservice is a bit difficult.

Does anyone have experience with setting up stream responses for a webservice?

This is somewhat boogling to me beacause I thought webservices (SOAP) was
designed to transfer large amounts of XML data in an encrypted state.  
Encrypting the data increases the size quite a bit. So, what's with the
difficultly actually implementing this?

Thanks!

> Jon,
>
[quoted text clipped - 30 lines]
> > interesting is that the failure has way less packets ~35 compared to the
> > success with over 150.

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.