问题产生的代理类Wsdl.exe用 [英] Problem creating proxy class with wsdl.exe

查看:228
本文介绍了问题产生的代理类Wsdl.exe用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要创建一个.NET客户端消耗从SAP CRM应用程序中的Web服务。我刚刚得到了wsdl文件。但是,当我尝试创建一个Wsdl.exe用一个代理类,我得到了不产生类的警告。我究竟做错了什么?

还有就是WSDL文件的标题。

 < XML版本=1.0编码=UTF-8&GT?;
< WSDL:定义的targetNamespace =瓮:SAP-COM:文档:SAP:肥皂:功能:MC-式
的xmlns:WSDL =htt​​p://schemas.xmlsoap.org/wsdl/
的xmlns:XSD =htt​​p://www.w3.org/2001/XMLSchema
XMLNS:肥皂=htt​​p://schemas.xmlsoap.org/wsdl/soap/
的xmlns:HTTP =htt​​p://schemas.xmlsoap.org/wsdl/http/
的xmlns:哑剧=htt​​p://schemas.xmlsoap.org/wsdl/mime/
的xmlns:TNS =瓮:SAP-COM:文档:SAP:肥皂:功能:MC-式
的xmlns:WSP =htt​​p://schemas.xmlsoap.org/ws/2004/09/policy
的xmlns:WSU =htt​​p://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd
的xmlns:N1 =瓮:SAP-COM:文档:SAP:RFC:功能>
 

我在使用Visual Studio 2008。

感谢

编辑: 我得到的错误信息是德语。

 模具SOAP 1.1,Bindung wurde nicht gefunden:WS-I Basic Profile的版本
 

     

1.1,UMF       助理Implementierungsrichtlinien,在田园Verfahren楚Verwendung   einer GRUPPE        wichtiger Webdienstspezifikationen的Zum   Entwickeln冯interoperablen   Webdienste       ñempfohlen werden。毛皮DAS 1.1-PROFIL lauten diese Spezifikationen SOAP 1.1,WS       DL 1.1,UDDI 2.0,XML 1.0 UND XML模式。

 更多信息祖WS-I Basic Profile的1.1版芬登SIE
 

在德Spezif       ikation温特        http://www.ws-i.org/Profiles/BasicProfile-1.1.html

  Warnung:ES wurden keine克拉森generiert。
Warnungen。更多信息芬登SIE在书房generierten
 

     

Quellkommentaren。

它说,该SOAP 1.1绑定没有被发现。

更新:我只是用svcutil.exe的创建代理类和它的工作。但我怎么现在配置代理类右端点?

解决方案

我只是用SvcUtil工具,而不是WSDL和它的工作。 欢呼声

更新: 使用SvcUtil工具中是不够的。 SAP可以提供多种WSDL的。但只有完整WSDL(包括端口,绑定)做到了。 否则,你就会得到一个XStream的错误。

感谢flurin为您提示!

I need to create a .net client which consumes a webservice from a SAP CRM application. I just got the wsdl file. But when i try to create a proxy class with wsdl.exe i get a warning that no classes are generated. What am I doing wrong?

There is the header of the wsdl file.

<?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">

I'm using Visual Studio 2008.

Thanks

EDIT: The error message I get is in german.

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 und XML Schema.

Weitere Informationen zu WS-I Basic Profile Version 1.1 finden Sie

in der Spezif ikation unter 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.

It says that the SOAP 1.1 Binding was not found.

UPDATE: I just used svcutil.exe to create proxy classes and it worked. But how do I now configure the proxy class to the right end point?

解决方案

I just used svcutil instead of wsdl and it worked. cheers

update: using of svcutil was not enough. sap can provide many kinds of wsdl. but only the full wsdl (incl. port and binding) did it. otherwise you just get an xstream error.

thanks flurin for your hint!

这篇关于问题产生的代理类Wsdl.exe用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆