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

  • Home
  • SEARCH
  • 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 238943
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T20:32:45+00:00 2026-05-11T20:32:45+00:00

I’m taking my first baby steps into consuming web services. Here’s my situation: I’m

  • 0

I’m taking my first baby steps into consuming web services. Here’s my situation:

I’m writing in .NET 3.5 for an existing corporate intranet website. I need to add a call to a web service, passing account data and getting a response.

I am able to add a web reference to the .wsdl file and have Visual Studio generate the Service Reference class.

So, here’s my question – is it easier to use WCF in this situation, or should I use the baked in ASP.NET web services architecture?

I tried to get the web services working using the following code, but was unsuccessful. In this code, the ProgramServiceClient is the name of the service class generated for me by VS using the wsdl file. Again, I am very new to this, so any pointers would be very helpful!

    var client = new ProgramServiceClient();
    Int64 acct = 123456781234
    var requestMetadata = new RequestMetadata();

    var response = new GetProgramResponse();
    var request = new GetProgramRequest
                      {
                          AccountId = acct
                      };

    client.GetProgram(requestMetadata, request, out response);
  • 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-05-11T20:32:46+00:00Added an answer on May 11, 2026 at 8:32 pm

    See How to Consume a Web Service.

    You should use WCF for all new web services development with .NET. WCF is “baked in” to .NET. What you refer to as the “baked in ASP.NET web services architecture” is the previous, old, and stagnant web services architecture.

    As to the specific code you posted, it’s good that you’re posting specific code, but you should also post the specific error messages or exceptions you receive. In particular, if you get an exception, then post the complete exception, including stack traces and InnerException instances. Catch, and then display, ex.ToString().

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
Seemingly simple, but I cannot find anything relevant on the web. What is the
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I am currently running into a problem where an element is coming back from

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.