我需要創建一個.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