powered by simpleCommunicator - 2.0.41     © 2025 Programmizd 02
Форумы / WCF, Web Services, Remoting [игнор отключен] [закрыт для гостей] / svcutil.exe net.tcp не создаёт прокси класс. А вот svcutil.exe http работает.
4 сообщений из 4, страница 1 из 1
svcutil.exe net.tcp не создаёт прокси класс. А вот svcutil.exe http работает.
    #38021786
stinggga
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
"C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\svcutil.exe" net.tcp://172.24.4.180:5571/AutoFillingPayServer /out:IStatTransportFilling.cs
pause

Пишет:
Attempting to download metadata from 'net.tcp://172.24.4.180:5571/AutoFillingPay
Server' using WS-Metadata Exchange. This URL does not support DISCO.
Microsoft (R) Service Model Metadata Tool
[Microsoft (R) Windows (R) Communication Foundation, Version 4.0.30319.1]
Copyright (c) Microsoft Corporation. All rights reserved.

Error: Cannot obtain Metadata from net.tcp://172.24.4.180:5571/AutoFillingPaySer
ver

If this is a Windows (R) Communication Foundation service to which you have acce
ss, please check that you have enabled metadata publishing at the specified addr
ess. For help enabling metadata publishing, please refer to the MSDN documentat
ion at http://go.microsoft.com/fwlink/?LinkId=65455.


WS-Metadata Exchange Error
URI: net.tcp://172.24.4.180:5571/AutoFillingPayServer

Metadata contains a reference that cannot be resolved: 'net.tcp://172.24.4.1
80:5571/AutoFillingPayServer'.

<?xml version="1.0" encoding="utf-16"?><Fault xmlns=" http://www.w3.org/2003/
05/soap-envelope"><Code><Value>Sender</Value><Subcode><Value xmlns:a=" http://www
.w3.org/2005/08/addressing">a:ActionNotSupported</Value></Subcode></Code><Reason
><Text xml:lang="ru-RU">The message with Action ' http://schemas.xmlsoap.org/ws/2
004/09/transfer/Get' cannot be processed at the receiver, due to a ContractFilte
r mismatch at the EndpointDispatcher. This may be because of either a contract m
ismatch (mismatched Actions between sender and receiver) or a binding/security m
ismatch between the sender and the receiver. Check that sender and receiver hav
e the same contract and the same binding (including security requirements, e.g.
Message, Transport, None).</Text></Reason></Fault>
...
Рейтинг: 0 / 0
svcutil.exe net.tcp не создаёт прокси класс. А вот svcutil.exe http работает.
    #38022137
stinggga
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
А если вместо реального айпи ставлю либо localhost либо 127.0.0.1

"C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\svcutil.exe" net.tcp://localhost:5571/AutoFillingPayServer /out:IStatTransportFilling.cs
pause

то пишет :
Cannot obtain Metadata from net.tcp://localhost:5571/AutoFillingPayServer


If this is a Windows (R) Communication Foundation service to which you have acce
ss, please check that you have enabled metadata publishing at the specified addr
ess. For help enabling metadata publishing, please refer to the MSDN documentat
ion at http://go.microsoft.com/fwlink/?LinkId=65455.


WS-Metadata Exchange Error
URI: net.tcp://localhost:5571/AutoFillingPayServer

Metadata contains a reference that cannot be resolved: 'net.tcp://localhost:
5571/AutoFillingPayServer'.

Could not connect to net.tcp://localhost:5571/AutoFillingPayServer. The conn
ection attempt lasted for a time span of 00:00:01.0468750. TCP error code 10061:
Подключение не установлено, т.к. конечный компьютер отверг запрос на подключени
е 127.0.0.1:5571.

Подключение не установлено, т.к. конечный компьютер отверг запрос на подключ
ение 127.0.0.1:5571

If you would like more help, type "svcutil /?"

C:\Program Files\rad_\Ux\WorkPrograms\AutoFillingPay\ProxyGenerator>pause
Для продолжения нажмите любую клавишу . . .
...
Рейтинг: 0 / 0
svcutil.exe net.tcp не создаёт прокси класс. А вот svcutil.exe http работает.
    #38022383
stinggga
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
stinggga, Помогите плиз. Неужели некому ничего сказать ?!
...
Рейтинг: 0 / 0
svcutil.exe net.tcp не создаёт прокси класс. А вот svcutil.exe http работает.
    #38022748
МихаилР
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
stinggga,

Пропишите явно endpoint для WS-Metadata Exchange и в качестве адреса указывайте его (хотя у меня сработало и при указании базового адреса).

Примерный конфиг:
Код: xml
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
 <system.serviceModel>
    <services>
      <service name="WcfServiceLibrary1.Service1">
        <endpoint binding="netTcpBinding" contract="WcfServiceLibrary1.IService1" />
        <endpoint address="mex" binding="mexTcpBinding" contract="IMetadataExchange" />
        <host>
          <baseAddresses>
            <add baseAddress="net.tcp://localhost:8733/Design_Time_Addresses/WcfServiceLibrary1/Service1/" />
          </baseAddresses>
        </host>
      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
        <behavior>
          <serviceMetadata />
        </behavior>
      </serviceBehaviors>
    </behaviors>
  </system.serviceModel>
</configuration>
...
Рейтинг: 0 / 0
4 сообщений из 4, страница 1 из 1
Форумы / WCF, Web Services, Remoting [игнор отключен] [закрыт для гостей] / svcutil.exe net.tcp не создаёт прокси класс. А вот svcutil.exe http работает.
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


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