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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T08:33:07+00:00 2026-05-14T08:33:07+00:00

I have already created a windows service that monitors the network for some specific

  • 0

I have already created a windows service that monitors the network for some specific traffic. I now need to make a user interface for the service so traffic can be watched in real time, as well as the ability to alter the service’s settings.

Unfortunately, I’m stuck on how I take my working service, and expose it through/convert it to WCF.

I don’t even know where to begin.

Thanks

EDIT: Well, I have exposed a few methods through WCF and this all appears like it will work as necessary.

It really wasn’t hard at all once I realized the ServiceHost constructor could take an instance, rather than just a type, since my class that did the work, didn’t have a parameterless constructor.

  • 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-14T08:33:07+00:00Added an answer on May 14, 2026 at 8:33 am

    Well, quite honestly, I wouldn’t go the path of “exposing” your service through WCF.

    My suggestion would be:

    • leave your current service which collects and monitors traffic as it is
    • store the data you might want to expose to other into a suitable persistant store (e.g. a database)
    • create a separate WCF service (hosted in a second Windows NT Service, or in IIS) that will allow external consumers to get at your collected data

    Given your current data, you would have to analyze what kind of data it is you have available, and then you need to decide what and how to expose that data to others who might be interested in that data.

    • if you choose a SOAP-based WCF service, you’d have to come up with a set of service methods (something along the lines of GetDataForToday, GetDataForHour or whatever it is you want to make available). In that case, this is your first task – define the service methods (your service contract, in WCF speak), and define what kind of data is involved – as parameters to your service methods, and as return values from those methods (your data contracts)

    • if you’re more into REST, then you don’t typically talk about methods, but instead you think of your data as resources – e.g. you could expose an hourly data set as a resource and navigate to it using an URL something like http://yourserver/YourService/YYYYMMDD/Hour or something like that – how you define those URL’s (the unified resource identifiers – URI’s) is totally up to you. Each such resource needs to have a representation – a set of fields and properties – and you would typically expose those as XML and/or JSON

    With the flexibility of WCF, you can actually even do both – if you wish.

    SOAP is the more traditional way of doing things – pros are a well-documented interface (you get a WSDL – web service description, and a handful of XSD’s – XML schemas to describe your data) which can be “discovered” and interpreted by humans and computers alike. On the downside, SOAP tends to be a bit “heavy”, and you need a special SOAP client / your own app, to actually get at the data.

    REST is the more hip and modern way of doing things – you navigate to a URL and it spits back a truckload of angle brackets (or a JSON document). It’s quick, it’s easy, it’s great – but it’s less formalized, you don’t get any machine-readable service description, really – it’s a bit more up to you to know / find out / read the docs to know what you’re really getting back and how to interpret it.

    Phew, this has become a long post!! Basically – I would keep your current data-gathering service and let it run as is, and think about how to expose / make available that data it collects using a separate WCF service of sorts.

    Good intro sites are the MSDN WCF Developer Center for the SOAP-based WCF aspects, and the MSDN WCF REST Developer Center for the REST-based aspects of WCF.

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

Sidebar

Related Questions

No related questions found

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.