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.0Using DNN API to Create/Update Users From External Web ApplicationUsing DNN API to Create/Update Users From External Web Application
Previous
 
Next
New Post
4/19/2007 6:31 PM
 

Thanks in advance for any guidance.  I am developing an application for a client that includes a shopping cart.  From the shopping cart application, I would like to be able create a user in an existing DotNetNuke portal (that is separate from the shopping cart app).  I created a reference to DotNetNuke, and instantiated the objects from the DNN API needed to create a new User.  I know what the Portal Id is, so I can pass that in, and I am able to get through simply adding a user; however, when it gets to adding the membership profile, and logging the user created, and sending the New User Emails to admin and the user using GetSystemMessage, I get stuck on: PortalSettings.

Obviously, in an external app, I am not in the DNN http context, so PortalSettings would be nothing.  So, my question...is there anything available (third-party, short-cut, trick, etc.) other than re-wrtiing all the code necessary to update profile, log user, send email since all of the core DNN API available uses PortalSettings.  I would need to have the ability to Create, Update (and possibly Delete) a user from an external application.  In short, do I need to write all the code to do that manually, or is there any way to use the API?  Perhaps a webservice?

I'm not lazy and don't mind writing code, I'm just in a time crunch on a project and wanted to see if this wheel has already been invented.  A search on Google and here hasn't brought forth anything fruitful.  Thanks all.

 
New Post
4/19/2007 11:23 PM
 

Check out website http://iweb.adefwebserver.com/ from Michael Washington

IWEB service will let you add account, send email, etc.  Give it a try.


Fuji Nguyen
FREE Visitor Hit Counter
Visit opensource.indyneinc.com for detail.
 
New Post
4/20/2007 11:07 AM
 
Thank you Michael, that was exactly what I was looking for. Awesome job! I was able to create and test a web service method with success. Quick question, if you have time. There is an example on your website on using this web service from javascript within DNN; however, do you have a quick example of how you would consume one of these webservice methods from an external asp.net application? I am getting hung up on the security part. Do I need to pass a UserID, UserName and Password for a host account (if I have Host security set for the method in webservice config), and then use your WebAuthendication method to check those credentials? Also, is ModuleID that you pass into WebAuthentication suppose to be the ModuleID of where the IWeb module is in the portal? Thanks for any help. Have a great weekend!
 
New Post
4/20/2007 11:21 AM
 

DJ Doug wrote
however, do you have a quick example of how you would consume one of these webservice methods from an external asp.net application? I am getting hung up on the security part.

When you install IWeb there is a link to a "Sample Client" (the link "Download the IWeb Connector client...") that shows you how to call IWeb from an external app.

IWeb only needs ModuleID when making a call from a AJAX web page



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
4/20/2007 2:40 PM
 

DJ Doug wrote

Thanks in advance for any guidance.  I am developing an application for a client that includes a shopping cart.  From the shopping cart application, I would like to be able create a user in an existing DotNetNuke portal (that is separate from the shopping cart app).  I created a reference to DotNetNuke, and instantiated the objects from the DNN API needed to create a new User.  I know what the Portal Id is, so I can pass that in, and I am able to get through simply adding a user; however, when it gets to adding the membership profile, and logging the user created, and sending the New User Emails to admin and the user using GetSystemMessage, I get stuck on: PortalSettings.

Obviously, in an external app, I am not in the DNN http context, so PortalSettings would be nothing.  So, my question...is there anything available (third-party, short-cut, trick, etc.) other than re-wrtiing all the code necessary to update profile, log user, send email since all of the core DNN API available uses PortalSettings.  I would need to have the ability to Create, Update (and possibly Delete) a user from an external application.  In short, do I need to write all the code to do that manually, or is there any way to use the API?  Perhaps a webservice?

I'm not lazy and don't mind writing code, I'm just in a time crunch on a project and wanted to see if this wheel has already been invented.  A search on Google and here hasn't brought forth anything fruitful.  Thanks all.

 

I solved this problem by creating a webservice in the DNN installation that exposed SOAP methods for creating users (after authentication, of course).  This way your other application doesn't have to reference DNN at all.

 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Using DNN API to Create/Update Users From External Web ApplicationUsing DNN API to Create/Update Users From External Web Application


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