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 7690795
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:28:41+00:00 2026-05-31T20:28:41+00:00

Watching some videos they talk about endpoints and im not sure what the differences

  • 0

Watching some videos they talk about endpoints and im not sure what the differences are in base address and endpoints when it comes to wcf RESTful services?

Why when using rest do you declare the URLs in the Contract areas? I mean whats the difference between wcf and restful wcf? Taking a guess is it WCF as a standalone you use the entire service at once or it serves one person at a time? And restful can service many unique and different client side applications/solutions at any given time? Dont really get the difference between wcf and restful wcf?

If I create a solution wcf service library and a “host” programme say a console app that allows post get and delete etc then I create another application and add the service reference of the first soultions service library I should then be able to retrieve data and post data etc. Thats fine. But what on earth does rest do to the service that makes it any different?

  • 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-31T20:28:42+00:00Added an answer on May 31, 2026 at 8:28 pm

    So does that mean you have to create the host, how would you do that?

    By using an instance of the ServiceHost class, if you’re doing this in code like in a windows app or service you follow this format:

     var host = new ServiceHost(typeof(ServiceClassToHost));
     host.Open();
    

    Also how do you define this service is it just in the web.config file, do you declare the url and port number? Because watching some videos they talk about endpoints and im not sure what the differences are in base address and endpoints when it comes to REST?

    a good answer to the baseaddress question:

    WCF service configuration file question regarding <baseAddresses>

    As you have guessed, the baseAddresses element is completely ignored when hosting in IIS. The service’s base address is determined by the web site & virtual directory into which your wcf service is placed.
    Even when self-hosting, baseAddresses is not required. It is merely a convenience that avoids you having to enter a full address for each endpoint. If it is present, the endpoints can have relative addresses (relative to the base address, that is).

    From there presumably when im making a client side application or a consumable web app I just type the url of the web server hosting the service lib via the “add service reference” when trying to add the service to the solution, and then I should be able to transfer data freely to and from the server?

    If you want inside VS to add a service reference, what this does is create the proxy you need to work with as a client, the other route is handrolling your own proxy, or using svcutil.exe to generate the proxy from the command line.

    I can’t answer the REST questions, sorry. 😉

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

Sidebar

Related Questions

While watching some videos on Channel 9 about the Reactive Extensions for .NET, someone
I have been watching various videos and reading various blogs where they go about
I'am watching some video tutorial about css and find realy strange thing. First of
I've been watching some videos on asp.net MVC, I think this question is just
I have been reading several tutorials and watching some iTube videos to see how
I use document ready all the time, but I'm watching some tutorial videos to
I've been watching some of the iPhone development videos off iTunes specifically Standford Fall
I have been watching some Pluralsight training videos on SharePoint development. One of the
I've been watching some videos from the build conference re: Inside Windows Azure etc.
I was watching some videos on YouTube by Google and in the basic lessons

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.