Отвечено Computer name issue

  • Saturday, October 28, 2006 9:39 AM
     
     

    Hello,

    I am having difficulties with WCF service, hosted on IIS6.0 and computer name.

    My virtual directory is accessible using domain name, but my service is created using "computer name" instead of domain name:

    "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://portal/apis/services/3.0/CatalogService.svc?wsdl "

    "Portal" is computer name. How I can force the service to use domain name instead of "portal"?

     

    Service configuration is:

    <system.serviceModel>

      <bindings>

        <basicHttpBinding>

          <binding name="BasicSecureHttpBinding">

            <security mode="Transport">

              <transport clientCredentialType="None"/>

            </security>

          </binding>

        </basicHttpBinding>

      </bindings>

      <services>

        <service name="Acme.Ecommerce.Services.Library.CatalogService" behaviorConfiguration="returnFaults">

          <endpoint  contract="Acme.Ecommerce.Services.Library.ICatalogService" binding="basicHttpBinding" bindingConfiguration="BasicSecureHttpBinding"/>

          <endpoint contract="IMetadataExchange" binding="mexHttpsBinding" address="mex"/>

        </service>

      </services>

      <behaviors>

        <serviceBehaviors>

          <behavior name="returnFaults">

            <serviceDebug includeExceptionDetailInFaults="true"/>

            <serviceMetadata httpsGetEnabled="true"/>

          </behavior>

        </serviceBehaviors>

      </behaviors>

    </system.serviceModel>

All Replies