WCF service with multiple EndPoints [modified]
-
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
-
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
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:
-
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:
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.
-
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.
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:
-
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:
I could see now config file is pretty visible
-
I could see now config file is pretty visible
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: