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
  1. Home
  2. General Programming
  3. WCF and WF
  4. WCF service with multiple EndPoints [modified]

WCF service with multiple EndPoints [modified]

Scheduled Pinned Locked Moved WCF and WF
csharpwcfvisual-studiowpfhelp
6 Posts 3 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.
  • K Offline
    K Offline
    Kamal Gurnani
    wrote on last edited by
    #1

    I have a WCF service where service class implements two contracts IMath and IGeom. In turn, I want this service to be consumed through two Endpoints. IMath should be exposed through netTcpBidning and IGeom through basicHttpBinding. Problem is when I m creating proxy second time to call upon IGeom methods, (One for IMath, one more for IGeom),under some different namespace, through visual studio, it has all the methods of IMath apart from expected IGeom methods. Here is how my config file looks like <services> <service name ="MultipleEPService.MathService" behaviorConfiguration="MathServiceMEXBehaviour" > <endpoint address="math" binding="netTcpBinding" contract="MultipleEPService.IMath"/> <endpoint address ="geom" binding ="basicHttpBinding" contract ="MultipleEPService.IGeom"/> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/> <endpoint address ="mex" binding="mexTcpBinding" contract ="IMetadataExchange"/> <host> <baseAddresses> <add baseAddress="http://localhost:4242/MathService.svc"/> <add baseAddress="net.tcp://localhost:8002/MathService.svc"/> </baseAddresses> </host> </service> </services> <behaviors> <serviceBehaviors> <behavior name="MathServiceMEXBehaviour"> <serviceMetadata httpGetEnabled="true"/> </behavior> </serviceBehaviors> </behaviors> Where m I making mistake plz suggest. Thanks

    modified on Friday, May 22, 2009 7:19 AM

    M 1 Reply Last reply
    0
    • K Kamal Gurnani

      I have a WCF service where service class implements two contracts IMath and IGeom. In turn, I want this service to be consumed through two Endpoints. IMath should be exposed through netTcpBidning and IGeom through basicHttpBinding. Problem is when I m creating proxy second time to call upon IGeom methods, (One for IMath, one more for IGeom),under some different namespace, through visual studio, it has all the methods of IMath apart from expected IGeom methods. Here is how my config file looks like <services> <service name ="MultipleEPService.MathService" behaviorConfiguration="MathServiceMEXBehaviour" > <endpoint address="math" binding="netTcpBinding" contract="MultipleEPService.IMath"/> <endpoint address ="geom" binding ="basicHttpBinding" contract ="MultipleEPService.IGeom"/> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/> <endpoint address ="mex" binding="mexTcpBinding" contract ="IMetadataExchange"/> <host> <baseAddresses> <add baseAddress="http://localhost:4242/MathService.svc"/> <add baseAddress="net.tcp://localhost:8002/MathService.svc"/> </baseAddresses> </host> </service> </services> <behaviors> <serviceBehaviors> <behavior name="MathServiceMEXBehaviour"> <serviceMetadata httpGetEnabled="true"/> </behavior> </serviceBehaviors> </behaviors> Where m I making mistake plz suggest. Thanks

      modified on Friday, May 22, 2009 7:19 AM

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      Kamal Gurnani wrote:

      Here is how my config file looks like

      There's your problem right there....your config file is pretty much empty! :rolleyes:

      Mark Salsbery Microsoft MVP - Visual C++ :java:

      P K 2 Replies Last reply
      0
      • M Mark Salsbery

        Kamal Gurnani wrote:

        Here is how my config file looks like

        There's your problem right there....your config file is pretty much empty! :rolleyes:

        Mark Salsbery Microsoft MVP - Visual C++ :java:

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

        Mark Salsbery wrote:

        Here is how my config file looks like There's your problem right there....your config file is pretty much empty!

        It's highly encrypted. In fact, the encryption is down to 0.0 pt font size.

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

        My blog | My articles

        M 1 Reply Last reply
        0
        • P Pete OHanlon

          Mark Salsbery wrote:

          Here is how my config file looks like There's your problem right there....your config file is pretty much empty!

          It's highly encrypted. In fact, the encryption is down to 0.0 pt font size.

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

          My blog | My articles

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          Pete O'Hanlon wrote:

          It's highly encrypted. In fact, the encryption is down to 0.0 pt font size.

          Heh....that's why I said "pretty much"....I thought I saw something, but it turned out to be a dust speck on my monitor.

          Mark Salsbery Microsoft MVP - Visual C++ :java:

          1 Reply Last reply
          0
          • M Mark Salsbery

            Kamal Gurnani wrote:

            Here is how my config file looks like

            There's your problem right there....your config file is pretty much empty! :rolleyes:

            Mark Salsbery Microsoft MVP - Visual C++ :java:

            K Offline
            K Offline
            Kamal Gurnani
            wrote on last edited by
            #5

            I could see now config file is pretty visible

            M 1 Reply Last reply
            0
            • K Kamal Gurnani

              I could see now config file is pretty visible

              M Offline
              M Offline
              Mark Salsbery
              wrote on last edited by
              #6

              Thanks! Ok, so what does this mean...

              Kamal Gurnani wrote:

              Problem is when I m creating proxy second time to call upon IGeom methods, (One for IMath, one more for IGeom),under some different namespace, through visual studio, it has all the methods of IMath apart from expected IGeom methods.

              Creating what proxy and how? Second time? Different namespace?

              Mark Salsbery Microsoft MVP - Visual C++ :java:

              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