Delphi Soap Server and CF.NET Application
I have a soap server written in Delphi and I am writing a PDA client using CF.NET 3.5, but I get the following error: "Client found response content type" text / html "but expected" text / xml ".
If I try to use this same web service in a WinForm application, it works fine.
Sandeep
Maybe your CF client is more picky and actually wants its XML to serve as text / xml, but the soap server doesn't provide the HTTP Content-Type header or set it in text / xml.
The WinForms client probably accepts it, as IE accepts XHTML marked as text / html instead of application / xml; it's so common there ...
Or is the client receiving something else that you don't expect: have you tried setting up a proxy to see what is actually being sent?
For example, if the server wants to login for some reason and sends a login page, it will be plain html and your client won't like it if it expects an xml package.
a source to share