我需要创建一个使用来自 SAP CRM 应用程序的 web 服务的 .net 客户端。我刚得到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">
我正在使用 Visual Studio 2008。
谢谢
编辑:我收到的错误消息是德语。
Die SOAP 1.1-Bindung wurde nicht gefunden.: WS-I Basic Profile, Version
1.1, umf asst Implementierungsrichtlinien, in denen Verfahren zur Verwendung einer Gruppe wichtiger Webdienstspezifikationen zum Entwickeln von interoperablen Webdienste n empfohlen werden。Für das 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
在http://www.ws-i.org/Profiles/BasicProfile-1.1.html下的 der Spezif ikation 中 。
Warnung: Es wurden keine Klassen generiert. Warnungen. Weitere Informationen finden Sie in den generierten
Quellkomentaren。
它说找不到 SOAP 1.1 绑定。
更新:我刚刚使用 svcutil.exe 创建代理类,它工作。但是我现在如何将代理类配置到正确的端点?