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

HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Trying to Add WebserviceTrying to Add Webservice
Previous
 
Next
New Post
2/1/2012 10:53 AM
 

So, I'm trying to add a web service so I can make an AJAX call to a function that will do a data query for my website tables.

I have a .asmx and a .cs file that has the code i want to execute. However, I don't know how I'm supposed to appropriately add them to my DNN. Thought I could just drop them in the skin folder with the AJAX call, but that didn't work. Most of the tutorials I've come across have been lacking detailed instructions.

 
New Post
2/1/2012 11:44 AM
 

Hello,

As I think somebody mentioned in your other thread, you should just package it as a module.

When you compile the thing, that cs file will end up in the dll. In your module package, you add the dll and the asmx file normally - no different than if the asmx file was an ascx file for your module.

Then, you can access the webservice by browsing to it in your desktopmodules folder. So, it will end up like "http://example.com/DesktopModules/MyService/Service.asmx"

Mike

 
New Post
2/1/2012 11:58 AM
 
Would it really be http://example.com/etc. if the site isn't live or will I have to change that url up?
 
New Post
2/1/2012 2:59 PM
 
I compiled and then used Create New Module under host Extension. Since I'm using 6.1.2 the package creation is different than it was in 5. Anyway, I can't seem to locate the created package.
 
New Post
2/1/2012 7:56 PM
 
Mitchell Tewksbury wrote:

So, I'm trying to add a web service so I can make an AJAX call to a function that will do a data query for my website tables.

I have a .asmx and a .cs file that has the code i want to execute. However, I don't know how I'm supposed to appropriately add them to my DNN. Thought I could just drop them in the skin folder with the AJAX call, but that didn't work. Most of the tutorials I've come across have been lacking detailed instructions.

 Michael Washington has a module on his site called iWeb which is a really good place to start.

http://iweb.adefwebserver.com/ 

The module allows you to create a web service that has full access to the dnn api and current system states.  

There is also a great tutorial on how to extend it using an extension system to easily add you own methods.

http://iweb.adefwebserver.com/Default... 

Westa

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Trying to Add WebserviceTrying to Add Webservice


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