locked
Wcf Service defaultPorts RRS feed

  • Question

  • User1501783605 posted

    Hello
    I am very new to wcf
    I have created a service and deployed the service in my local IIS using the port84
    But in my config file I have set the binding behaviour to use port:81 for http scheems but when I open the wsdl xml file it the service end point is pointing to port :84
    What I have done wrong in my config file
    I have attached the config file as bellow
      

    <appSettings>
        <add key="SystemStatus" value="1" />
        <add key="SystemName" value="PortalTest" />
        <add key="Version" value="8.0" />
      </appSettings>
      <system.serviceModel>
        <behaviors>
          <serviceBehaviors>
            <behavior name="behaviorPort">
              <useRequestHeadersForMetadataAddress>
                <defaultPorts>
                  <!-- Use your own port numbers -->
                  <add scheme="http" port="81" />
                  <add scheme="https" port="80" />
                </defaultPorts>
              </useRequestHeadersForMetadataAddress>
              <serviceMetadata httpGetEnabled="false"/>
              <serviceDebug includeExceptionDetailInFaults="false"/>
            </behavior>
          </serviceBehaviors>
        </behaviors>
        <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
        <bindings>
            <basicHttpBinding>
                <binding name="ExceptionLoggingServicesSoap" />
            </basicHttpBinding>
        </bindings>
        <client>
            <endpoint address="http://end-epas07/ExceptionLogging/Services/exceptionloggingservices.asmx"
                binding="basicHttpBinding" bindingConfiguration="ExceptionLoggingServicesSoap"
                contract="ExceptionLoggingServices.ExceptionLoggingServicesSoap" name="ExceptionLoggingServicesSoap"   behaviorConfiguration="behaviorPort"/>
        </client>
    </system.serviceModel>
     <system.webServer>
        <modules runAllManagedModulesForAllRequests="true"/>
      </system.webServer>  
    </configuration>

    And the out put wsdl:soap file as

    http://localhost:84/IntegrationService.asmx?WSDL
    </wsdl:port>
    <wsdl:port name="IntegrationServiceSoap12" binding="tns:IntegrationServiceSoap12">
    <soap12:address location="https://localhost:84/IntegrationService.asmx"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>

    appreciate your help 

    Monday, February 3, 2014 8:52 AM

Answers