Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 6.x > Installation and deployment > REST Service with JSONP View modes: 
User avatar
Member
Member
dburg - 2/28/2012 7:19:19 PM
   
REST Service with JSONP
Hi,
Is it possible to set up JSONP with the Kentico REST Service?

I have tried the following article to set up JSONP with WCF, http://www.gutgames.com/post/Enabling-JSONP-in-WCF.aspx , however, I'm having problems determining what values to use for the Kentico REST service. (Service Name, Endpoint Contract, and the baseAddress as marked in Bold below)

<system.serviceModel>
...
...
<services>
<service name="CMS.RESTService.RESTService">
<clear />
<endpoint address="" binding="webHttpBinding"
bindingConfiguration="webHttpBindingJsonP"
contract="CMS.RESTService.RESTService"
behaviorConfiguration="webHttpBehavior" />
<host>
<baseAddresses>
<add baseAddress="http://localhost/KenticoCMS/rest" />
</baseAddresses>
</host>
</service>
</services>
</system.serviceModel>

Is there somewhere I can find this information? I have tried the above settings, however I know for sure that the contract is wrong from the error message.

Thanks again,
Diana

User avatar
Kentico Support
Kentico Support
kentico_janh - 3/1/2012 2:43:38 AM
   
RE:REST Service with JSONP
Hello,

Kentico does not support JSONP with the REST service and it can't be configured in version 6.x, but I will add this as a feature request for the next version, so it is possible, that this format will be available in version 7.x of Kentico CMS/EMS.

Best regards,
Jan Hermann