Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. WCF and WF
  4. Need help on Messaging Architecture Using WCF

Need help on Messaging Architecture Using WCF

Scheduled Pinned Locked Moved WCF and WF
csharpwcfsalesarchitecturehelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Saiyed Alam
    wrote on last edited by
    #1

    Hello friends I'm working on a ERP system where there are in total 8 modules. Now I need to create a duplex messaging system using WCF through user of one module with communicate with users of other modules. Like user of sales dept will request user of management dept to check on a certain request and give decision. Then the management user may accept that request or not and let the sales user know his feed back at the same time. Is there any sample of this or any help would be appreciated. Thanking in Advance Saiyed ALam

    S 2 Replies Last reply
    0
    • S Saiyed Alam

      Hello friends I'm working on a ERP system where there are in total 8 modules. Now I need to create a duplex messaging system using WCF through user of one module with communicate with users of other modules. Like user of sales dept will request user of management dept to check on a certain request and give decision. Then the management user may accept that request or not and let the sales user know his feed back at the same time. Is there any sample of this or any help would be appreciated. Thanking in Advance Saiyed ALam

      S Offline
      S Offline
      Super Lloyd
      wrote on last edited by
      #2

      http://msdn.microsoft.com/en-au/library/ms734712.aspx[^]

      A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.

      1 Reply Last reply
      0
      • S Saiyed Alam

        Hello friends I'm working on a ERP system where there are in total 8 modules. Now I need to create a duplex messaging system using WCF through user of one module with communicate with users of other modules. Like user of sales dept will request user of management dept to check on a certain request and give decision. Then the management user may accept that request or not and let the sales user know his feed back at the same time. Is there any sample of this or any help would be appreciated. Thanking in Advance Saiyed ALam

        S Offline
        S Offline
        Super Lloyd
        wrote on last edited by
        #3

        One last thing... Don't generate the proxy and client class for your services, just reuse the same classes on both sides! it will save you a lot of grief! Service interface example

        \[ServiceContract(Namespace = "http://agtrix.net/AgDat/XDN")\]
        public interface IEventService
        {
        	\[OperationContract()\]
        	Guid SubmitRawEvent(EventData evt);
        }
        

        data to be passed around

        \[DataContract(Namespace = "http://agtrix.net/AgDat/XDN")\]
        public class EventData
        {
        	\[DataMember()\]
        	public string DataSource { get; set; }
        
        	\[DataMember()\]
        	public Guid EventGroupId { get; set; }
        
        	\[DataMember()\]
        	public List<EventAttribute> Attributes { get; set; }
        }
        
        \[DataContract(Namespace = "http://agtrix.net/AgDat/XDN", IsReference = true)\]
        public class EventAttribute
        {
        	\[DataMember()\]
        	public string ContextName { get; set; }
        	\[DataMember\]
        	public string ImportName { get; set; }
        	\[DataMember\]
        	public string Value { get; set; }
        }
        

        Note: the Attribute are critical to the service!

        A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups