【发布时间】:2011-01-07 16:16:28
【问题描述】:
我需要创建一个使用来自 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, Version1.1,嗯 asst Implementierungsrichtlinien, in denen Verfahren zur Verwendung 艾纳集团 wichtiger Webdienstspezifikationen zum Entwickeln von 互操作性 网络媒体 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 模式。
Weitere Informationen zu WS-I Basic Profile Version 1.1 finden Sie在 der Spezif 运动下 http://www.ws-i.org/Profiles/BasicProfile-1.1.html.
Warnung: Es wurden keine Klassen generiert. Warnungen. Weitere Informationen finden Sie in den generiertenQuellkomentaren。
它说找不到 SOAP 1.1 绑定。
更新:我刚刚使用 svcutil.exe 创建代理类,它工作。但是我现在如何将代理类配置到正确的端点?
【问题讨论】:
-
确切的错误信息是什么?
-
你能告诉我们wsdl文件的底部吗?会有你需要的soap:address和wsdl:port标签。
-
您好,该 wsdl 文档中没有
元素。只是
标签: .net web-services sap crm proxy-classes