Гость
Форумы / WCF, Web Services, Remoting [игнор отключен] [закрыт для гостей] / Кастомная аутентификация сервиса / 1 сообщений из 1, страница 1 из 1
29.03.2012, 11:10
    #37729060
eximb
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Кастомная аутентификация сервиса
Помогите пожалуйста с проблемой
вот мой конфиг

Код: xml
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
<system.serviceModel>
    <client>
      <endpoint address="https://eximreports.hq.eximb.com/KorundAuth/svc/Auth.svc"
         binding="wsHttpBinding" bindingConfiguration="wsHttpBindingEndpoint"
        contract="KorundAuth.IAuth" name="wsHttpBindingEndpoint" />
    </client>
    <bindings>
      <wsHttpBinding>
        <binding name="WsHttpBindingConfig" maxReceivedMessageSize="10000000">
          <security mode="TransportWithMessageCredential">
            <transport clientCredentialType="None" />
            <message clientCredentialType="UserName" negotiateServiceCredential="false" />
          </security>
        </binding>
        <binding name="wsHttpBindingEndpoint">
          <security mode="Transport">
            <transport clientCredentialType="None" />
          </security>
        </binding>
      </wsHttpBinding>
    </bindings>
    <services>
      <service behaviorConfiguration="ZastavaBehavior" name="ZastavaService.Zastava">
        <endpoint address="" binding="wsHttpBinding" bindingConfiguration="WsHttpBindingConfig"
          name="wsHttpBindingEndpoint" contract="ZastavaService.IZastava" />
        <endpoint address="mex" binding="mexHttpsBinding" bindingConfiguration=""
           name="mexHttpBindingEndpoint" contract="IMetadataExchange" />
      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
        <behavior name="ZastavaBehavior">
          <serviceCredentials>
            <userNameAuthentication userNamePasswordValidationMode="Custom"
              includeWindowsGroups="false" customUserNamePasswordValidatorType="ZastavaService.CustomUserNameValidator, ZastavaService" />
          </serviceCredentials>
          <serviceMetadata httpGetEnabled="false" httpsGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="true" />
        </behavior>
      </serviceBehaviors>
    </behaviors>
  </system.serviceModel>
  <system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
  </system.webServer>
</configuration>



Паблишу сервис на удаленном сервере там включаю SSL в IIS. Всё работает при открытии сервиса по ссылке.
Добавляю новый проект и делаю сервис референс на сервис который запаблишил. Делаю какие то действия всё работает.

При попытки добавить сервис референс на локалхосте выбрасывает ошибку

Could not find a base address that matches scheme https for the endpoint with binding WSHttpBinding. Registered base address schemes are [http].
вот ссылка по которой хожу
http://localhost:58311/Zastava.svc

в параметрах проекта стоит Visual Studio Development server

В чем может быть проблема?
...
Рейтинг: 0 / 0
Форумы / WCF, Web Services, Remoting [игнор отключен] [закрыт для гостей] / Кастомная аутентификация сервиса / 1 сообщений из 1, страница 1 из 1
Целевая тема:
Создать новую тему:
Автор:
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]