By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,778 Members | 1,074 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,778 IT Pros & Developers. It's quick & easy.

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

P: 3
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
Share this question for a faster answer!
Share on Google+

Post your reply

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