powered by simpleCommunicator - 2.0.59     © 2025 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / WCF, Web Services, Remoting [игнор отключен] [закрыт для гостей] / Сбой согласования режима безопасности SOAP
1 сообщений из 1, страница 1 из 1
Сбой согласования режима безопасности SOAP
    #36599018
Alex_BBB
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Добрый день,

WCF сервис хостится на IIS. При попытке вызвать метод сервиса возникает исключение:
Сбой согласования режима безопасности SOAP с "http://adm.site.ru/yandex/SearchAdmin.svc" для целевого объекта "http://adm.site.ru/yandex/SearchAdmin.svc". Подробнее см. внутреннее исключение.

Внутреннее исключение:
Сообщение или подпись, предоставленные для проверки, были изменены

app.config клиента
Код: plaintext
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.
    <system.serviceModel>
        <bindings>
            <wsHttpBinding>
                <binding name="WSHttpBinding_ISearchServiceAdm" closeTimeout="00:01:00"
                    openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
                    bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
                    maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
                    messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
                    allowCookies="false">
                    <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                        maxBytesPerRead="4096" maxNameTableCharCount="16384" />
                    <reliableSession ordered="true" inactivityTimeout="00:10:00"
                        enabled="false" />
                    <security mode="Message">
                        <transport clientCredentialType="Windows" proxyCredentialType="None"
                            realm="" />
                        <message clientCredentialType="Windows" negotiateServiceCredential="true"
                            algorithmSuite="Default" establishSecurityContext="true" />
                    </security>
                </binding>
            </wsHttpBinding>
        </bindings>
        <client>
            <endpoint address="http://adm.site.ru/yandex/SearchAdmin.svc"
                binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_ISearchServiceAdm"
                contract="YandexSrv.ISearchServiceAdm" name="WSHttpBinding_ISearchServiceAdm">
                <identity>
                    <servicePrincipalName value="host/srv4" />
                </identity>
            </endpoint>
        </client>
    </system.serviceModel>

web.config сервиса (часть связанная с wcf)
Код: plaintext
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.
  <system.serviceModel>
    <behaviors>
      <serviceBehaviors>
        <behavior name="SearchLibrary.SearchServiceAdmBehavior">
          <serviceMetadata httpGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="false" />
        </behavior>
      </serviceBehaviors>
    </behaviors>
    
    <services>
      <service behaviorConfiguration="SearchLibrary.SearchServiceAdmBehavior" name="SearchLibrary.SearchServiceAdm">
        <endpoint address="" binding="wsHttpBinding" contract="SearchLibrary.ISearchServiceAdm">
        </endpoint>
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
      </service>
    </services>
    

    <serviceHostingEnvironment>
      <baseAddressPrefixFilters>  
        <add prefix="http://adm.site.ru/yandex/"/>
      </baseAddressPrefixFilters>  
    </serviceHostingEnvironment>

  </system.serviceModel>

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


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