I Can Reference One Service Endpoint In My App But Not The Other.

P

pbd22

Hi.

After compiling my web service library (hosting two service endpoints)
and attempting to call them from my Web client, I am noticing that I
am able to call/see one but not the other and
I can't sort out why this is happening.

Below are my endpoint references (Trade and Authentication) in
App.config. I am wondering if the reason that TradeServiceClient is
available in my Web client but AuthServiceClient is not is that I am
using the same port for the base addresses? Would this matter?

Any ideas out there? Thanks in advance.

<services>
<service behaviorConfiguration="WebAPILibrary.WebAPIBehavior"
name="SpoonSys.WebAPI.Trade.TradeService">
<endpoint address="" binding="wsHttpBinding"
contract="SpoonSys.WebAPI.Trade.ITradeService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding"
contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8731/
Design_Time_Addresses/WebAPILibrary/Trade/" />
</baseAddresses>
</host>
</service>
<service behaviorConfiguration="WebAPILibrary.WebAPIBehavior"
name="SpoonSys.WebAPI.Authentication.AuthService">
<endpoint address="" binding="wsHttpBinding"
contract="SpoonSys.WebAPI.Authentication.IAuthService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding"
contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8731/
Design_Time_Addresses/WebAPILibrary/Authentication/" />
</baseAddresses>
</host>
</service>
</services>
 
P

pbd22

Hi.

After compiling my web service library (hosting two service endpoints)
and attempting to call them from my Web client, I am noticing that I
am able to call/see one but not the other and
I can't sort out why this is happening.

Below are my endpoint references (Trade and Authentication) in
App.config. I am wondering if the reason that TradeServiceClient is
available in my Web client but AuthServiceClient is not is that I am
using the same port for the base addresses? Would this matter?

Any ideas out there? Thanks in advance.

<services>
      <service behaviorConfiguration="WebAPILibrary.WebAPIBehavior"
name="SpoonSys.WebAPI.Trade.TradeService">
        <endpoint address="" binding="wsHttpBinding"
contract="SpoonSys.WebAPI.Trade.ITradeService">
          <identity>
            <dns value="localhost" />
          </identity>
        </endpoint>
        <endpoint address="mex" binding="mexHttpBinding"
contract="IMetadataExchange" />
        <host>
          <baseAddresses>
            <add baseAddress="http://localhost:8731/
Design_Time_Addresses/WebAPILibrary/Trade/" />
          </baseAddresses>
        </host>
      </service>
      <service behaviorConfiguration="WebAPILibrary.WebAPIBehavior"
name="SpoonSys.WebAPI.Authentication.AuthService">
        <endpoint address="" binding="wsHttpBinding"
contract="SpoonSys.WebAPI.Authentication.IAuthService">
          <identity>
            <dns value="localhost" />
          </identity>
        </endpoint>
        <endpoint address="mex" binding="mexHttpBinding"
contract="IMetadataExchange" />
        <host>
          <baseAddresses>
            <add baseAddress="http://localhost:8731/
Design_Time_Addresses/WebAPILibrary/Authentication/" />
          </baseAddresses>
        </host>
      </service>
    </services>

I am curious why I am not getting a response to this - anything else i
can provide?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top