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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T19:30:04+00:00 2026-06-03T19:30:04+00:00

i do not know wcf but very soon i have to learn it. so

  • 0

i do not know wcf but very soon i have to learn it. so i go through some online tutorial & small sample code. so some question has come into my mind like

1) why service must have one interface?

2) why service interface need to decorate with attribute like service contract?

3) why all interface method signature must decorate with operation contract.

4) what is the meaning of service contract & operation contract. what these attribute does actually.

5) what is data contract? when one method should be decorated with attribute like data contract.

6) i am familiar with web service. i saw web service was not related with any port but wcf is always related with port….why?

7) when i host a small hello world wcf service application in a console apps and start on remote machine then my client could not connect it. reason may was like port was not forwarded. some time we can host wcf but we can not enter into router so in that case we can not forward port. just tell me in that kind of situation how wcf client can connect to server?

8) can we create port and forward it programmatically when we host wcf on any remote machine.

if possible please discuss my points in details here. thanks

  • 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-03T19:30:05+00:00Added an answer on June 3, 2026 at 7:30 pm

    WCF is a technology to transfer data between the client and the server.

    You points 1 to 5, are all meant to tell WCF what is to be transfered, so that WCF can serialise the information on one side and deserialise it on the other,

    For your point 6: WCF covers several technologies including web services. The default WCF configuration is the same as basic web services. Web services use port 80 by default.

    For your point 7, either are not pausing the console app, so it is not running when you try to connect to it. Or the port you are using is blocked by the firewall.

    On your point 8, WCF 4 supports routing.

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

Sidebar

Related Questions

I have a asp.NET web service (not WCF but the classic .asmx one with
I am very new to WCF and SOAP messaging but I have managed to
I do not know javascript right now but I am planning on learning it.
I do not know if this is possible, but here goes. And working with
well i do not know how to use sql union properly . i have
Somewhere some guy said (I honestly do not know where I got this from),
Folks, I know I didn't phrase that title very well, but here's the scenario.
I want to secure some endpoint of a WCF service, i dont know if
I have a very bad feeling about using lock in my code but now
I have wcf service application which i host on IIS and runs very well.

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.