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. How to access WCF Service from win32 Application

How to access WCF Service from win32 Application

Scheduled Pinned Locked Moved WCF and WF
csharpwcftutorialquestion
4 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.
  • E Offline
    E Offline
    ERLN
    wrote on last edited by
    #1

    How to access WCF service from classic win32 console application(assume VC6)?

    P 1 Reply Last reply
    0
    • E ERLN

      How to access WCF service from classic win32 console application(assume VC6)?

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      One way would be to use named pipes. WCF supports NetNamedPipeBinding as a transport. Here's an example of setting it up in WCF:

      <service name="MyService"
      behaviorConfiguration="MyServiceBehavior">
      <endpoint binding="netNamedPipeBinding"
      bindingConfiguration="Binding1" contract="IMyService" />
      <endpoint address="mex" binding="mexNamedPipeBinding"
      contract="IMetadataExchange" />
      </service>

      Deja View - the feeling that you've seen this post before.

      My blog | My articles

      E 1 Reply Last reply
      0
      • P Pete OHanlon

        One way would be to use named pipes. WCF supports NetNamedPipeBinding as a transport. Here's an example of setting it up in WCF:

        <service name="MyService"
        behaviorConfiguration="MyServiceBehavior">
        <endpoint binding="netNamedPipeBinding"
        bindingConfiguration="Binding1" contract="IMyService" />
        <endpoint address="mex" binding="mexNamedPipeBinding"
        contract="IMetadataExchange" />
        </service>

        Deja View - the feeling that you've seen this post before.

        My blog | My articles

        E Offline
        E Offline
        ERLN
        wrote on last edited by
        #3

        ok fine. How to call the methods of wcf service using named pipes ?

        P 1 Reply Last reply
        0
        • E ERLN

          ok fine. How to call the methods of wcf service using named pipes ?

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #4

          Hey - that's VC++ code, something I haven't touched in 7 years now. There should be plenty of samples on how to do this on the web. A quick google found this[^] sample.

          Deja View - the feeling that you've seen this post before.

          My blog | My articles

          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