DotNetNuke Web Services Module Development

I need to deploy a web service as part of the DotNetNuke 4.x module that I create, but I don’t know how I can do it and I know that it will always stay in the same place. How to add an asmx file to my module project, and when I create my .DNN file, specify where the web service will work? I want to access a web service from within an ascx file in a module using the format "~ / webservices / webservice.asmx".

Is there a way for DotNetNuke to specify in the .DNN file where the web services will go to the site? And if so, can I still reference them with root anchored tags, like ~ / myservice.asmx?

+5
source share
1 answer

ASMX , <files> :

<files>
 <file>
  <name>YourWebService.asmx</name>
  <path></path>
 </file>
</files>

, .

Resource.zip , , , DNN (, SqlDataProvider).

. Resource.zip ...

zip (,/DesktopModules/YourModule/*). zip , .

TheNameOfYourFile.zip .

[snip]

<folder>
  <name>Your Module</name>
  <friendlyname>Your Module</friendlyname>
  <foldername>YourModule</foldername>
  <modulename>YourModule</modulename>
  <description>A module for DotNetNuke websites.</description>
  <version>01.00.00</version>
  <resourcefile>Resources.zip</resourcefile>
  <businesscontrollerclass></businesscontrollerclass>
  <modules>
    <module>

[/snip]

- :

<%=ResolveUrl("~/DesktopModules/YourModule/Services.asmx")%>
+5
source

All Articles