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

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Resolve URL - Web ServiceResolve URL - Web Service
Previous
 
Next
New Post
3/21/2012 6:51 PM
 

Hi guys I'm having some trouble getting DNN to work correctly when using web services.

I think the problem stems from using the below method.

  //Get Current Portal Settings
DotNetNuke.Entities.Portals.PortalSettings _Settings = DotNetNuke.Entities.Portals.PortalController.GetCurrentPortalSettings(); 

As the path to the webservice will be something like:
Website.com/DesktopModules/Module/Webservice.asmx

as apposed to
Website.com/SUBPORTAL/DesktopModules/Module/Webservice.asmx

So getting the current portal settings will always return the main portal usually with an id of 0.

Is there away to resolve the path to a webservice, or would you recommend another location for the webservice?

Currently running DNN 05.06.01, IIS7, VS2010, SQL2008, .net 4Target.  Unable to upgrade DNN at this moment in time sadly.

 
New Post
3/21/2012 8:48 PM
 
If you will be using the DotNetNuke.Entities.Portals.PortalController.GetCurrentPortalSettings() function then ensure that web service URL has PortalId appended like following:

Website.com/DesktopModules/Module/Webservice.asmx?PortalId=3

Mandeep Singh
CEO - Mandeeps.com | Developing DotNetNuke Modules Since 2004
DNN Monitor | DotNetNuke Keep Alive Service
 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Resolve URL - Web ServiceResolve URL - Web Service


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