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

Home Posts Topics Members FAQ

Intermittent error: Client found response content type of 'text/html;charset=utf-8',

3 New Member
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 following error when executing the Java Web Service:
Client found response content type of 'text/html;charset=utf-8', but expected 'text/xml'

The code that executes the Java Web Service:
Expand|Select|Wrap|Line Numbers
  1.         private bool WSFile(sbyte[] sbfr, string url, string from, string loannbr, string user, string password)
  2.         {
  3.             debugmsg("WSFile(" + url + ", " + from + ", " + loannbr + ", " + user + ", " + password + ")");
  4.  
  5.             try
  6.             {
  7.                 //Transmit file to web service(s)
  8.                 IUploadRespaDocsService ws = new IUploadRespaDocsService();
  9.                 ws.Url = url;
  10.                 ws.uploadDocument(loannbr, from, sbfr, user, password);
  11.                 ws.Dispose();
  12.             }
  13.             catch (Exception ex)
  14.             {
  15.                 throw new Exception("Error--WSFile:" + TruncateLongMessage(ex.Message));
  16.             }
  17.  
  18.             return true;
  19.         }
  20.  
Is anyone aware of compatibility issues that might account for this issue?

I really suspect that there is an issue with the Java Web Service, but I don't have direct access to that WS. We had the issue yesterday. I was told that the stack heap was large and was causing system slowness. The explanation provided was that the stack heap was large because the server hadn't been rebooted recently. The server was rebooted last night, but we had the same issue today.

Any assistance will be appreciated.
Nov 21 '06 #1
0 3324

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Lakshmi Narayanan | last post by:
Hi experts, My problem is, for password <input name="password" type="password"> element the size given is 20. For another one <input name="username"> is also 20. But in browser the size differs...
1
by: Simon_E | last post by:
We are experiencing problems with calling a Web Service that runs on Oracle HTTP Server powered by Apache. The Web Service returns 400 Bad Request. The explanation I got from the developer of...
6
by: Calvin Lai | last post by:
Does anyone know the difference and usage of them? Great thanks!
0
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
by: Grzegorz ¦lusarek | last post by:
Hi all. I sending email using standard python modules smtplib, email, coding email in utf but subject of message is not coded properly. In subject i use my national characters (polish) and after...
1
by: Jesús Bosch | last post by:
I get this error after trying to call a method in a webeservice. This webservice returns an html page (as string), but I recieve this error. Someone knows a solution for this? Thanks! Jesús...
3
by: John S | last post by:
Using VB.NET 2005, I created a Web Service that returns a dataset from a SQL Server database. In the same solution I created a test GUI with a Windows form to display the results. It worked...
1
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...
1
by: Eric | last post by:
Hello, I have the following xml: <?xml-stylesheet type="text/xsl" href="C:\mypath\myxsl.xsl"?> <page> <appl> <datedisplay>mm/dd/yy</datedisplay> </appl> <forms>
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
1
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
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.