Tuesday, January 06, 2009 Register  Login
You are here: Project » Blog  
IWEB and Partial Classes
Location: BlogsIWeb    
Posted by: Michael Washington 1/7/2007 11:39 AM

IWEB uses partial classes to allow you to create additional web services methods without replacing or re-installing IWEB.

In the App_Code/IWeb/IWebMethods folder,

all the class files are partial classes of the DotNetNuke.Modules.IWeb.WebService class.

All the class files will be compiled into a single DotNetNuke.Modules.IWeb.WebService class.

The methods will then be available through the /DesktopModules/IWeb/webservice.asmx file that is tied to that class.

Creating a IWEB Extension

When creating an additional IWEB method, you follow the steps in this tutorial and package your new method in a DotNetNuke module package (see the first half of this tutorial on how to do that).

Putting the class file in the correct place

In order to work the class file containing your new web method must be placed in the App_Code/IWeb/IWebMethods folder. To do this you create an entry such as this in the .dnn file that is contained in your module package

 <file>
<path>[app_code]../IWeb/IWebMethods</path>
<name>IWebSurvey.vb</name>
</file>

The ../IWeb/ in the path causes the file to be placed in the proper directory.

Permalink |  Trackback

Your name:
Title:
Comment:
Add Comment   Cancel 
  
Blogs
  
Archives
  
Home  |  Screen Shots  |  Example Code  |  Installing  |  Download  |  Project
Copyright 2006 by ADefwebserver.com   |  Privacy Statement  |  Terms Of Use