0 Replies - 168 Views - Last Post: 09 July 2012 - 08:29 AM Rate Topic: -----

#1 bjorandb  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 06-July 12

using WCF to pass a string between a Website and a Windows Service

Posted 09 July 2012 - 08:29 AM

Hi all,


Objective: I am trying to pass a user defined message from a website to a windows service running on a different server.

I have just been introduced to Windows Communication Foundation and there is ALOT here to it, so I would appreciate some clarification and additionally some advice. However, this looks to be the best way to communicate between websites and windows services. I have been reading several different articles on WCF and I’m a little confused on something. Basically, it seems like there is two different ways to do this.

One method seems to be creating a new WCF item inside my solution.

Or another way seems like all you have to do is add the <ServiceContract()> and <OperationContract()> tags in the classes of my already existing windows service and I’m able to call these methods from my Website like they’re part of Website’s project.

Imports System.ServiceModel

<ServiceContract()> _
Public Class Test

<OperationContract()> _

I feel like that’s too easy and I’m not that lucky. So I’m going to assume that option one is how I’m going to have to proceed. Can anyone confirm this? And could anyone briefly explain to me how I could use this WCF item to relay messages between a Website and a Windows Service?

Is This A Good Question/Topic? 0
  • +

Page 1 of 1