|
svcutil.exe net.tcp не создаёт прокси класс. А вот svcutil.exe http работает.
|
|||
---|---|---|---|
#18+
"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> ... |
|||
:
Нравится:
Не нравится:
|
|||
01.11.2012, 14:37 |
|
svcutil.exe net.tcp не создаёт прокси класс. А вот svcutil.exe http работает.
|
|||
---|---|---|---|
#18+
А если вместо реального айпи ставлю либо 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 Для продолжения нажмите любую клавишу . . . ... |
|||
:
Нравится:
Не нравится:
|
|||
01.11.2012, 16:55 |
|
svcutil.exe net.tcp не создаёт прокси класс. А вот svcutil.exe http работает.
|
|||
---|---|---|---|
#18+
stinggga, Помогите плиз. Неужели некому ничего сказать ?! ... |
|||
:
Нравится:
Не нравится:
|
|||
01.11.2012, 19:35 |
|
svcutil.exe net.tcp не создаёт прокси класс. А вот svcutil.exe http работает.
|
|||
---|---|---|---|
#18+
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.
... |
|||
:
Нравится:
Не нравится:
|
|||
02.11.2012, 08:40 |
|
|
start [/forum/topic.php?fid=19&msg=38022748&tid=1397161]: |
0ms |
get settings: |
9ms |
get forum list: |
14ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
24ms |
get topic data: |
12ms |
get forum data: |
3ms |
get page messages: |
43ms |
get tp. blocked users: |
2ms |
others: | 255ms |
total: | 368ms |
0 / 0 |