Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Best way (7.0) to implement JSON webservice on DNN server?Best way (7.0) to implement JSON webservice on DNN server?
Previous
 
Next
New Post
5/15/2013 1:57 PM
 
I have already implemented the webservice - which provides JSON that a DNN module reads - using WCF. The WCF sits in a DNN subdirectory which must be configured as web application. All works well with IIS7 BUT I have to deploy this to an Azure website. No web applications configurable there. OUCH. If someone knows a workaround... great. But I guess it won't work, there is simply just one web.config allowed on one Aszure website and the WCF service requires another web.config.

So I am looking for a workaround. I cannot just deploy the WCF service on another server since I want to get the JSON data from the same domain and I also want to secure the webservice with the DNN login - which works fine with my not-Azure configuration.

So I looked around and I think this looks promising:

http://www.dotnetnuke.com/Resources/Blogs/EntryId/3500/Getting-Started-with-Services-Framework-WebAPI-Edition.aspx

Rewriting the service should not be that much work. However, I wanted to check if I get a second opinion here, maybe there is a better way to do what I want to do or maybe there are other Azure problems with the webapi method Scott S describes.
 
New Post
5/16/2013 4:39 AM
 
To solve my issue I just copied the system.serviceModel section from the WCF project into the DNN web.config, added the multipleSiteBindingsEnabled="true" attribute to the serviceHostingEnvironment node under system.serviceModel and the thing serves JSON from the Azure website like a champ.

I thought this would not work because I had to remove many modules from system.webServer/modules to get the WCF service working in the web application under DNN, but that apparently is no issue when DNN and the webservice reside in the same application.

Still, the WebAPI way is probably more modern or what, but for now I am happy that I did not have to do much to get it to work on Azure.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Best way (7.0) to implement JSON webservice on DNN server?Best way (7.0) to implement JSON webservice on DNN server?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out