我正在尝试使用 svcutil.exe 创建代理类,配置服务。wsdl:https ://service100.emedny.org:9047/MHService?wsdl 服务网址:https ://service100.emedny.org:9047/MHService
但我收到此错误:
Setting environment for using Microsoft Visual Studio 2010 x86 tools.
C:\Windows\system32>svcutil.exe https://service100.emedny.org:9047/MHService?wsd
l
Microsoft (R) Service Model Metadata Tool
[Microsoft (R) Windows (R) Communication Foundation, Version 4.0.30319.1]
Copyright (c) Microsoft Corporation. All rights reserved.
Attempting to download metadata from 'https://service100.emedny.org:9047/MHServi
ce?wsdl' using WS-Metadata Exchange or DISCO.
Warning: The following Policy Assertions were not Imported:
XPath://wsdl:definitions[@targetNamespace='http://org/emedny/mhs/']/wsdl:bindi
ng[@name='MHS']
Assertions:
<dpe:summary xmlns:dpe='http://www.datapower.com/extensions'>..</dpe:summary
>
<sp:SupportingTokens xmlns:sp='http://docs.oasis-open.org/ws-sx/ws-securityp
olicy/200702'>..</sp:SupportingTokens>
Generating files...
C:\Windows\system32\MHService.cs
C:\Windows\system32\output.config
C:\Windows\system32>
虽然它生成了 2 个文件,但 ouptput.config 只包含一些文本,告诉我们没有导入绑定详细信息。
请建议