Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi Guys,
I created a wcf service in my Umbraco Project. In the wcf service i added the following:
[OperationContract] [WebGet(UriTemplate = "/RAEvents/GetAllEvents", ResponseFormat = WebMessageFormat.Json)] List<WCFEvent> GetAllEvents();
and i tried calling the wcf service on my web browser using :
https://{ipaddress}/ra2/RAService.svc/RAEvents/GetAllEvents
but i got a response :
No umbraco document matches the url '/ra2/RAService.svc/RAEvents/GetAllEvents'.
However when i run the following service on the browser, they indicated that the service has been created.
https://{ipaddress}/ra2/RAService.svc
I'm trying to create a custom wcf service to return json objects. Is this way not a possible way to use wcf service to return json with umbraco?
Hi Melvin,
You will need to add /ra2 to the reserved paths app setting in web config. This should allow you to get access to any urls that start /ra2 instead of Umbraco's routing engine intercepting it.
Thanks,
Nik
Thank you Nik for your response.
I have tried what you said and have added the following in my web config:
<add key="umbracoReservedPaths" value="~/umbraco,~/install/,~/RAService.svc,~/ra2" />
however i still got this error:
Server Error in '/ra2' Application. The resource cannot be found.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
WCF service in Umbraco
Hi Guys,
I created a wcf service in my Umbraco Project. In the wcf service i added the following:
and i tried calling the wcf service on my web browser using :
but i got a response :
However when i run the following service on the browser, they indicated that the service has been created.
I'm trying to create a custom wcf service to return json objects. Is this way not a possible way to use wcf service to return json with umbraco?
Hi Melvin,
You will need to add /ra2 to the reserved paths app setting in web config. This should allow you to get access to any urls that start /ra2 instead of Umbraco's routing engine intercepting it.
Thanks,
Nik
Thank you Nik for your response.
I have tried what you said and have added the following in my web config:
however i still got this error:
is working on a reply...