Quantcast
Channel: VBForums - WPF, WCF, WF
Viewing all articles
Browse latest Browse all 256

i need wcf to test for an absolute address.

$
0
0
197 Points

737 Posts
i need wcf to test for an absolute address.

a few seconds ago|LINK

Hi.

i am trying the following:

Web server, i run the address: https://localhost/VSAPI/vsapiinfo.svc and i get:

To test this service, you will need to create a client and use it to call the service. You can do this using the svcutil.exe tool from the command line with the following syntax:

svcutil.exe https://testwebappsrv/VSAPI/VSAPI.svc?wsdl

However this is not what i want.

I want the web service to understand that i want to run the ip address of the server. so it should say, for example:

To test this service, you will need to create a client and use it to call the service. You can do this using the svcutil.exe tool from the command line with the following syntax:

svcutil.exe https://192.168.0.1/VSAPI/VSAPI.svc?wsdl

How can i make it understand the ip address? Thanks.

MY web.config:
Code:

<?xml version="1.0"?>
<configuration>
 
  <system.serviceModel>
    <client>
      <endpoint address="http://192.168.102.30/WSVistaWebClient/TicketingService.asmx"
        binding="basicHttpBinding" bindingConfiguration="TicketingService"
        contract="ServiceReferenceTicketingService.TicketingService"
        name="TicketingService" />
      <endpoint address="http://192.168.102.30/WSVistaWebClient/DataService.asmx"
        binding="basicHttpBinding" bindingConfiguration="DataService"
        contract="ServiceReferenceDataService.DataService" name="DataService" />
      <endpoint address="http://192.168.102.30/WSVistaWebClient/LoyaltyService.asmx"
        binding="basicHttpBinding" bindingConfiguration="LoyaltyService"
        contract="ServiceReferenceLoyaltyService.LoyaltyService" name="LoyaltyService" />
  <!--  <endpoint name="" address="" binding="wsHttpBinding" bindingConfiguration="defaultBasicHttpBinding" contract="VSAPIService.IVSAPI"/>
      <endpoint name="" address="" binding="wsHttpBinding" bindingConfiguration="defaultBasicHttpBindingInfo" contract="VSAPIService.IVSAPIINFO"/> -->
    </client>
    <serviceHostingEnvironment multipleSiteBindingsEnabled="true"/>
 
    <services>
      <service behaviorConfiguration="MyServiceBehavior" name="VSAPIService.VSAPI">
        <endpoint address="mex" binding="basicHttpBinding" bindingConfiguration="defaultBasicHttpBinding" contract="VSAPIService.IVSAPI"/>
     
      </service>
      <service behaviorConfiguration="MyServiceBehaviorInfo" name="VSAPIService.VSAPIINFO">
        <endpoint address="mex" binding="basicHttpBinding" bindingConfiguration="defaultBasicHttpBindingInfo" contract="VSAPIService.IVSAPIINFO"/>
     
      </service>
    </services>
    <bindings>
      <basicHttpBinding>
        <binding name="defaultBasicHttpBinding" maxReceivedMessageSize="3000000"  sendTimeout="00:05:00"> <!-- transferMode="Streamed" if multi transfer issues with server-->
          <security mode="Transport">
            <message clientCredentialType="Certificate" />
          </security>
        </binding>
        <binding name="defaultBasicHttpBindingInfo" maxReceivedMessageSize="3000000" sendTimeout="00:05:00">
          <security mode="Transport">
            <transport clientCredentialType="Certificate"></transport>
          </security>
        </binding>
        <binding name="TicketingService" sendTimeout="00:05:00" />
        <binding name="DataService" sendTimeout="00:05:00" maxReceivedMessageSize="3000000" />
        <binding name="LoyaltyService" sendTimeout="00:05:00" />
      </basicHttpBinding>   
    </bindings>
    <behaviors>
      <serviceBehaviors>
        <behavior name="MyServiceBehavior">
          <serviceMetadata httpsGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="false"/>
    <!--    <serviceCredentials>
            <userNameAuthentication userNamePasswordValidationMode="Custom" customUserNamePasswordValidatorType="VSAPIService.MyUserNamePasswordValidator, VSAPIService"/>
          </serviceCredentials> -->
        </behavior>
        <behavior name="MyServiceBehaviorInfo">
          <serviceMetadata httpsGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="false"/>
      <!--  <serviceCredentials>
            <userNameAuthentication userNamePasswordValidationMode="Custom" customUserNamePasswordValidatorType="VSAPIService.MyUserNamePasswordValidatorInfo, VSAPIService"/>
          </serviceCredentials> -->
        </behavior>
        <behavior name="">
          <serviceMetadata httpGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="false"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
  <!--  <extensions>
      <behaviorExtensions>
        <add name="WcfMessageLogger"
              type="VSAPIService.WcfMessageLoggerExtension, VSAPIService.VSAPI" />
      </behaviorExtensions>
    </extensions> -->
  </system.serviceModel>
  <system.web>
    <compilation debug="true"/>
  </system.web>
</configuration>


Viewing all articles
Browse latest Browse all 256

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>