Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8552195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:22:15+00:00 2026-06-11T14:22:15+00:00

I am making wcf calls and getting back data in my application via this

  • 0

I am making wcf calls and getting back data in my application via this javascript code..

function setCurrentResponseValue(response) {

    var applicationData = null;

    $.ajax({
        type: "POST",
        url: "ClientService.svc/REST/SetCurrentResponseValue",
        contentType: "application/json; charset=utf-8",
        data: JSON.stringify({ response: response }),
        dataType: "json",
        async: false,
        success: function (msg) {

            applicationData = msg;

        },
        error: 'An Error'
    });

    return applicationData;

}

I need to set session variables my svc file uses from C# code behind. How do I call a method in my svc file from code behind instead the ajax call above?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T14:22:16+00:00Added an answer on June 11, 2026 at 2:22 pm

    There are lots of very similar questions already on SO. This has perhaps the best answers: How to Consume a Restful Service in .NET?

    @Darrel Miller’s answer is probably the most useful there, with a link to his blog post showing how to use HttpClient to consume REST data: http://www.bizcoder.com/index.php/2012/01/09/httpclient-it-lives-and-it-is-glorious/

    (The fact that the service is WCF is largely irrelevant to the client if you’re using loose coupling against REST).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm managing a shared auth cookie when making WCF service calls via this methodology
I have a application that's making calls against some WCF services I have hosted
I'm working on a traditional ASP.NET application making WCF service calls. Should I put
I have a WCF application where I make JavaScript calls to. I want to
http://pastebin.com/FPkZhxAQ Hi, I am making a WCF service/client application. WCF Service is web based.
I'm making WCF calls from a Mono client running on Ubuntu (Mono 2.6). I
What is the difference between making calls to mvc controller methods and WCF WEB
I am making a Prism desktop application and intend to use WCF services to
I have the following setup: Intranet Application --> Call WCF Web Api --> Calls
I'm experimenting with making async WCF calls. I'm looking at making multiple calls to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.