John,
What I am trying to do is send data to the webservice and that other
requests can receive. I am using the Application object for this.
This is a small appliation with not much data being sent.
So I have several objects that I want to wrap in a wrapper class
and send to be broadcasted.
I tried your idea of sending xml, so I serialize my objects and
then send then in a string in the wrapper class
Now I get this error message
Client found response content type of 'text/html; charset=utf-8', but
expected 'text/xml'.
Do you have any input in the way I should do this?
rotsey
>> Hi,
>>
[quoted text clipped - 19 lines]
> Depending on what you expect to have happen, you might need to process the
> data as XML.
John Saunders [MVP] - 02 Aug 2007 15:41 GMT
> John,
>
[quoted text clipped - 12 lines]
> Client found response content type of 'text/html; charset=utf-8', but
> expected 'text/xml'.
This message means that you've received an error from ASP.NET in the form of
a HTML page. You should look at the HTML to see what the error is.
Alternatively, you should look in the Application event log for warning
messages from ASP.NET. Look to see what error is happening. It may be due to
a simple bug in your code rather than a problem with the technique.

Signature
John Saunders [MVP]