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...Building ExtensionsBuilding ExtensionsModulesModulesWeb Services problemWeb Services problem
Previous
 
Next
New Post
2/16/2015 11:49 AM
 

Hey guys quick one related to web services.

I came across this example by Chris and a fine article to explain some of the inner workings.

Long story short I added GetHandler to the module I've been messing with. Added relevant changes to web.config.

Try to enter http://portalaliase/svc/roles into the browser address bar and I get 404 error. What is going on say to myself.

Quick search revealed a lovely stackoverflow example based on the same topic. So, I should be doing things correctly.

From my understanding two modifications to the web.config file should have registered the service URL with DNN using my modules assembly name and namespace of GetHandler in both cases.

Now I am currently working on DNN v7.3.3 and this code was based on DNN v5 possibly v6 so there could be chance that things have changed. I am basing this on the fact that there was no <httpHandlers> node inside <system.web> node.

Does anyone have a bit more insight on this?

Or perhaps see what I missed?

 
New Post
2/16/2015 4:18 PM
 

that christoc example is not good. i made my webservice working using this example:

http://concepteurweb.ca/blog/en/post/1187/creating-a-webservice-in-dotnetnuke-7

 i was also able to use my webservice from javascript and from C# program.

it was  quite a lot of work to figure it out. maybe i should write up some tutorial , it seems a waste of time that others will have to reinvent the wheel.

 
New Post
2/16/2015 4:45 PM
 
logpop wrote:

that christoc example is not good. i made my webservice working using this example:

http://concepteurweb.ca/blog/en/post/1187/creating-a-webservice-in-dotnetnuke-7

 i was also able to use my webservice from javascript and from C# program.

it was  quite a lot of work to figure it out. maybe i should write up some tutorial , it seems a waste of time that others will have to reinvent the wheel.

Thanks for the info logpop. The example you liked helped me a lot when I was writing my first DNN module with service framework. But its not what I am after.

I had quite a bit of fun with Chris example today trying to get it to work for me. The only reason why I am trying to get this method to work is to see if I can use this example to tap into Office 365 REST APIs.

 
New Post
2/17/2015 4:03 AM
 

Back for another round this morning checking my code top to bottom. Everything is spot on.

web.config file is spot on. I even checked it against IHttpHandler as described in MSDN repository.

But I am still unable navigate to http://portalaliase/svc/roles. I can see the GET request in browser development tools but DNN responds with 404.

So, the question then becomes is it something that has been deprecated (considering that I am trying this on 7.3.3) or my code is not as "spot on" as I think it is !?

Anyone with a bit more knowledge on this topic?

 
New Post
2/17/2015 4:03 AM
 

Back for another round this morning checking my code top to bottom. Everything is spot on.

web.config file is spot on. I even checked it against IHttpHandler as described in MSDN repository.

But I am still unable navigate to http://portalaliase/svc/roles. I can see the GET request in browser development tools but DNN responds with 404.

So, the question then becomes is it something that has been deprecated (considering that I am trying this on 7.3.3) or my code is not as "spot on" as I think it is !?

Anyone with a bit more knowledge on this topic?

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesWeb Services problemWeb Services problem


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.

Content Layout

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out