powered by simpleCommunicator - 2.0.41     © 2025 Programmizd 02
Форумы / WCF, Web Services, Remoting [игнор отключен] [закрыт для гостей] / wcf client .exception message "The provided URI scheme 'http' is invalid; expected 'https"
1 сообщений из 1, страница 1 из 1
wcf client .exception message "The provided URI scheme 'http' is invalid; expected 'https"
    #38810989
Che0
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Добрый день.
пытаюсь создать клиент под сервис. Сервис работает через Sharepoint (не знаю важно это или нет).
часть Конфига
Код: xml
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
  <system.serviceModel>
        <diagnostics>
            <messageLogging logMalformedMessages="true" logMessagesAtServiceLevel="false"
                logMessagesAtTransportLevel="true" />
        </diagnostics>
        <bindings>
            <basicHttpBinding>
              <binding name="CommonServiceJSSoap_binding" >
                <security mode="Transport">
                  <transport clientCredentialType="Windows"/>
                </security>
              </binding>
            </basicHttpBinding>
        </bindings>
        <client>
            <endpoint address="http://chernyavskiy/_layouts/15/eos/commonservicejs.asmx"
                binding="basicHttpBinding" bindingConfiguration="CommonServiceJSSoap_binding"
                contract="CommonServices.CommonServiceJSSoap" name="CommonServiceJSSoap_endpint" />
        </client>
    </system.serviceModel>



Код
Код: c#
1.
2.
  CommonServiceJSSoapClient client = new CommonServiceJSSoapClient();
            client.Open();


При попытки выполнить Open вылетает
Код: c#
1.
 ArgumentException{"The provided URI scheme 'http' is invalid; expected 'https'.\r\nParameter name: via"}



CommonServiceJSSoapClient генрировал с помощью VS add Service reference
Анонимный доступ запрещен.

Спасибо
...
Рейтинг: 0 / 0
1 сообщений из 1, страница 1 из 1
Форумы / WCF, Web Services, Remoting [игнор отключен] [закрыт для гостей] / wcf client .exception message "The provided URI scheme 'http' is invalid; expected 'https"
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


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