Last post Jan 22, 2014 03:28 AM by Fuxiang Zhang - MSFT
Jan 20, 2014 02:06 PM|vinayjade|LINK
SlideshowExtender is not working with wcf service. It is working with webservice but while integrating with wcf service no error but still not getting output. so first question is can i use this extender with wcf service and second question is how?
Jan 20, 2014 10:38 PM|chetan.sarode|LINK
Refer this -
Jan 20, 2014 11:23 PM|vinayjade|LINK
i have already refer that my problem is about slideshowextender only not for all other ajax controls
Jan 22, 2014 03:28 AM|Fuxiang Zhang - MSFT|LINK
Thanks for your post.
According to your descrioption, I see that you want to call the wcf service from SlideShowExtender SlideShowServiceMethod.
As we all know that the ajax extender controls using the jquery ajax to call the web service with http request.
So we should make the wcf service works like the web service (.asmx). For this, we should define our wcf service like below.
public class Service : IService
That makes sure the service works as a normal ASMX service and supports all existing ASP.NET features. If setting compatibility mode, the WCF service
will have to be hosted on IIS and communicate with its client application using HTTP.
Next we should decorate the method using "WebInvoke" like below.
[WebInvoke(Method = "POST",
BodyStyle = WebMessageBodyStyle.Wrapped,
ResponseFormat = WebMessageFormat.Json)]
In other word, if we want the slideshowextender call the wcf service, we must make sure the wcf service can be called by the jquery ajax.
There are some helplinks will help you how to do that below.