I have a web service in liferay.. and the response would be
{"response":{"status":{"code":"200","message":"ok"},"userProfile": {"screenName":"testUser","userName":"testUser"}}}
I’m getting following error when consuming it from an ios client:
Encountered unexpected response with status code: 200 (MIME Type: text/javascript)
The MIME type must be application/json for json resonse; please change
Where to configure in Liferay to make the MIME type to be “application:json”
Thanks for your help!
set response.setContentType(“application/json”);
response mime type would be “application/json”