473,486 Members | 1,850 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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

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

Apr 7 '06 #1
2 2865
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
"Jon" <Jo*@discussions.microsoft.com> wrote in message
news:20**********************************@microsof t.com...
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.

Apr 10 '06 #2
Jon
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!

"Robert May" wrote:
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
"Jon" <Jo*@discussions.microsoft.com> wrote in message
news:20**********************************@microsof t.com...
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.


Apr 10 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
6325
by: msuk | last post by:
All, I have a well form block of XML that is stored in a C# string type and I just simply want to display it in the browser using Response.Write but when I try this I get the following error: ...
0
2440
by: | last post by:
Hello NG! I try to call a WebService from a mobile device. The WebService should return a DataSet, so the call looks like mDataSet = mWebSrv.GetDataSet(<Params>) but instead of returning a...
1
3251
by: ramarnath | last post by:
Hi, I've created a webservice, which is working fine in development environment and UAT environment. but i received following error often in staging environment, not all the time. ...
0
1928
by: Saya | last post by:
Hello, The situation is as follows: My server app (ASP.NET WebService) responds to the client request (ASP.NET) by returning a text string appended with 2 int numbers, being the X&Y coordinate...
4
7044
by: Mark | last post by:
I have written a PocketPC application that connects to a web service, and when im connected via the cable or via wireless then it pulls back the data correctly. However when connected to GPRS, i...
1
2741
by: Mark P | last post by:
I've written a .Net 1.1 Web Service that receives a file and forwards the file to another Web Service (this one written in Java). The Web Service generally works, but intermittently gets the...
0
3325
by: Mark P | last post by:
I've written a .Net 1.1 Web Service that receives a file and forwards the file to another Web Service (this one written in Java). The Web Service generally works, but intermittently gets the...
13
31352
by: =?Utf-8?B?S2VzdGZpZWxk?= | last post by:
Hi Our company has a .Net web service that, when called via asp.net web pages across our network works 100%! The problem is that when we try and call the web service from a remote machine, one...
2
6635
by: doubts85 | last post by:
i have problem when i try build this application and the error is below. Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'. The request failed with the...
0
7094
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7123
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7305
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5427
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4863
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4559
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3066
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
598
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.