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...Getting StartedGetting StartedCalling Wcf Services in Javascript in DNN Control Calling Wcf Services in Javascript in DNN Control
Previous
 
Next
New Post
6/9/2011 1:03 PM
 
hi ,
        I want calling wcf Serices by javascript in DNN Contol so i have Add in Page Load of control in .vb File  :

Dim strProtocol As String = ConfigurationManager.AppSettings("WebProtocol")

Dim objScriptManager As ScriptManager = ScriptManager.GetCurrent(Me.Page)

Dim objServiceReference As ServiceReference

objServiceReference = New ServiceReference

objServiceReference.Path = strProtocol + Request.Url.Authority + "http://test.com/WCFServices/SearchWeb..."
            objScriptManager.Services.Add(objServiceReference)
            DotNetNuke.Framework.AJAX.RegisterScriptManager()

And .ascx page in line coding : Access the methode of Wcf file

WebServiceSmartEditor.AddIntoProactive(UserId.value, selectedPatient,

toProactive, isFVHighRisk, isProviderIdentified, isHighPriorityPatient,

toReactive, isEdDischargeCensus, isIPDischargeCensus, dateAdmit, dateDischarge,

isNonFvPCP, pcpSID, pcpName,

isNonFvLoc, patientLocationID, patientLocationName, LocationId.value,

addToProactiveSuccess, OnFailure);



Show the javascript Error :

WebServiceSmartEditor. not define the methode .....

So please help me if this methode is wong calling the wcf in Dnn
and give me answer how to call wcf services in javascript in DNN
this is urgent



Ashish Tiwari
 
New Post
6/30/2011 6:54 AM
 
Hi Ashish,

Have you been able to solve it? If so please post your solution.

Otherwise, may be the following posts are of use:
How to use WCF service in DNN modules
DNN AppPool / JSDebug

If not, could you elaborate on how you link the Javascript side to your webservice. You are using 'WebServiceSmartEditor'? I don't see a link between 'WebServiceSmartEditor' (in your ascx page / markup) and 'objServiceReference' (in your code behind).
 
New Post
6/30/2011 10:20 AM
 
I haven't gone through the code, but according to the description this article
Creating Secure DotNetNuke ASP.NET AJAX Web Services
should have the solution. You could use the module but more likely you could copy parts of the code.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedCalling Wcf Services in Javascript in DNN Control Calling Wcf Services in Javascript in DNN Control


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