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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0How do set up a module to consume a web service?How do set up a module to consume a web service?
Previous
 
Next
New Post
8/20/2008 11:22 AM
 

Fooberichu described exactly what I do as well, I just don't deploy the changes.  (At least I don't think I do)  It has been a long time since I touched that module.

You could use the portal alias to build the URL automatically.

If the service might not exist, for proper coding, I would strongly recommend an enable/disable in the consuming application.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
8/21/2008 3:25 AM
 

Thanks for the tips - I'll try this method.

 

I was just thinking - Is IMC perhaps a better way to communicate between the modules? I have never even looked at it to be honest - can someone who knows more about IMC let me know their thoughts on this scenario please?

There are essentially 3 different modules which the design must cater for:

  • Module A - Smart-Thinker Module - Receives Events from B and C
  • Module B - Smart-Thinker Module - Publishes Events to A
  • Module C - Any 3rd Party Module - Publishes Events to A

I have control over Module A and B but I want to expose an API for any other module to publish events to my Module A too. Does IMC allow this or are webservices the way to go? It just needs to send a simple message to Module A on certain events in Module B/C.


Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
New Post
8/22/2008 2:52 PM
 

Rodney,

I think you need to step out of the box and make sure you understand exactly how people may want to use this in the future.  From what I gather, IMC is intended for when the modules exist on the same page or when Module "x" redirects to a tab that contains Module "y".  Fair enough.  But what happens when Module "x" doesn't exist on the same page as Module "y" or you don't want to redirect?  What about if somebody wanted to consume your API and publish events from a Desktop application?

I think a webservice will ultimately give you the most flexibility in how the API is consumed because it could be used by modules on the same page, different page, different server, etc.  You could allow mapping to the URL by "module instance" and/or override by a direct URL, for example, including any parameters necessary such as a module id, tab id, etc. 

You've probably seen these posts from a Google search, but here are a couple posts/tutorials treating the IMC topic:

http://www.kodhedz.com/Resources/DotNetNukeFramework/InterModuleCommunicationExample/tabid/38/Default.aspx

http://www.kemmis.info/blog/archive/2008/02/22/dotnetnuke-inter-module-communication-or-how-your-modules-can-get-their.aspx

With the web services you can either mimic or use the IWeb functionality to secure the service calls (I've mimicked the functionality in an app I'm writing, loving it).


-- Jon Seeley
DotNetNuke Modules
Custom DotNetNuke and .NET Development
http://www.seeleyware.com
 
New Post
8/25/2008 8:53 PM
 

Thanks for the suggestions Fooberichu - I have spent the last 3 days playing around with Web Services and it seems to fit the mould exactly. It is more suited to a semi-public API (as-in, not public to the world but to other 3rd-party DNN mods) than the IMC model - I just need to secure it properly which is what I am experimenting with now.


Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0How do set up a module to consume a web service?How do set up a module to consume a 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