Click here to Skip to main content
15,901,205 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
my web Service Error When Call One Function:

The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '


please help me??
Posted
Comments
Kornfeld Eliyahu Peter 18-May-14 7:06am    
Can you show the code of the method you called? Also a real life return value can help us...

1 solution

At first view, I did not see the difference either. But here it is:
the binding expects XML, while the web service sends HTML.
I'd change the content type of the binding.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900