Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net 使用wsdl.exe创建代理类时出现问题_.net_Web Services_Sap_Crm_Proxy Classes - Fatal编程技术网

.net 使用wsdl.exe创建代理类时出现问题

.net 使用wsdl.exe创建代理类时出现问题,.net,web-services,sap,crm,proxy-classes,.net,Web Services,Sap,Crm,Proxy Classes,我需要创建一个.net客户端,它使用来自SAP CRM应用程序的Web服务。我刚得到wsdl文件。但是,当我尝试使用wsdl.exe创建代理类时,我得到一个警告,没有生成任何类。我做错了什么 这是wsdl文件的头 <?xml version="1.0" encoding="utf-8"?> <wsdl:definitions targetNamespace="urn:sap-com:document:sap:soap:functions:mc-style" xmlns:wsdl

我需要创建一个.net客户端,它使用来自SAP CRM应用程序的Web服务。我刚得到wsdl文件。但是,当我尝试使用wsdl.exe创建代理类时,我得到一个警告,没有生成任何类。我做错了什么

这是wsdl文件的头

<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions targetNamespace="urn:sap-com:document:sap:soap:functions:mc-style"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:tns="urn:sap-com:document:sap:soap:functions:mc-style"
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
xmlns:n1="urn:sap-com:document:sap:rfc:functions">
1.1,umf denen Verfahren zur Verwendung的助理实施者 艾纳格鲁佩 wichtiger WebdienstPezifikationen zum 互操作性 韦迪恩斯特 恩普福伦·沃登。Für das 1.1-Profil lauten diese Spezifikationen肥皂1.1,WS DL 1.1、UDDI 2.0、XML 1.0和XML模式

Weitere Informationen zu WS-I Basic Profile Version 1.1 finden Sie
斯佩齐夫酒店 反垄断法

奎尔科门塔伦

它说没有找到SOAP 1.1绑定


更新:我刚刚使用svcutil.exe创建了代理类,它成功了。但是我现在如何将代理类配置到正确的端点呢?

我只是使用了svcutil而不是wsdl,它工作了。 干杯

更新: 使用svcutil是不够的。sap可以提供多种wsdl。但只有完整的wsdl(包括端口和绑定)完成了这项工作。 否则您只会得到一个xstream错误


谢谢你的提示

确切的错误消息是什么?您能告诉我们wsdl文件的底部吗?您需要的是soap:address和wsdl:port标记。只是
Weitere Informationen zu WS-I Basic Profile Version 1.1 finden Sie
Warnung: Es wurden keine Klassen generiert.
Warnungen. Weitere Informationen finden Sie in den generierten