我需要创建一个.NET客户机,它使用SAP CRM应用程序中的Web服务。我刚刚拿到了wsdl文件。但是,当我尝试创建一个wsdl.exe代理类时,我得到一个警告,没有类生成。我究竟做错了什么?使用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">
我使用Visual Studio 2008的
感谢
编辑: 该错误消息我得到的是德语。
Die SOAP 1.1-Bindung wurde nicht gefunden.: WS-I Basic Profile, Version
1.1,UMF 助理Implementierungsrichtlinien,在田园Verfahren祖尔Verwendung einer GRUPPE wichtiger Webdienstspezifikationen的Zum Entwickeln冯interoperablen Webdienste Ñempfohlen werden。 Fürdas 1.1-Profil lauten diese spezifikationen SOAP 1.1,WS DL 1.1,UDDI 2.0,XML 1.0和XML Schema。
Weitere Informationen zu WS-I Basic Profile Version 1.1 finden Sie
在德Spezif ikation温特 http://www.ws-i.org/Profiles/BasicProfile-1.1.html。
Warnung: Es wurden keine Klassen generiert. Warnungen. Weitere Informationen finden Sie in den generierten
Quellkommentaren。
它说没有找到SOAP 1.1绑定。
更新:我只是用svcutil.exe来创建代理类,它的工作。但是,我现在如何将代理类配置到正确的终点?
什么是确切的错误信息? – Kane 2010-01-21 10:38:50
我已更新问题 – nWorx 2010-01-21 11:00:54
您能向我们展示wsdl文件的底部吗? 会有soap:address和wsdl:port标签,这就是你需要的。 – 2010-01-21 21:03:54