WSDL.exe和命名空间 [英] WSDL.exe and namespaces
问题描述
假设您的WSDL包含两个相同名称的复杂类型(例如,客户端)但不同的targetnamespace。如果您要使用通过asmx添加webreference,则会在同一个全局命名空间下添加这两种类型。代理中两个类的命名约定如下 - 其中一个名为Client,另一个名为client1。
Svcutil有一个简洁的选项,wsdl中的每个命名空间都被反序列化为代理类中的相同名称
http://www.codeguru.com /forum/showthread.php?t=463032
svcutil.exe / n:%ORIGINALNAMESPACE%,%NEWNAMESPACE%< wsdl path>
wsdl .exe有类似的选择。是否可以使用wsdl.exe?
Say your WSDL consists of two complex types of same name (e.g. Client) but different targetnamespace. If you were to use to add a webreference through asmx it adds both these types under the same global namespace. The naming conventions of the two classes in the proxy is as follows - one of these is called Client and the other is called client1.
Svcutil has neat option where in every namespace in the wsdl will be deserialized into the same namepsace in the proxy class
http://www.codeguru.com/forum/showthread.php?t=463032
svcutil.exe /n:%ORIGINALNAMESPACE%,%NEWNAMESPACE% <wsdl path>
Does wsdl.exe have a similar option. Is it even possible to do with wsdl.exe??
推荐答案
当您键入"wsdl.exe /?"时在命令提示符下,你看到这样的选项吗?如果没有,则可能没有。
When you type "wsdl.exe /?" at the command prompt, do you see such an option? If not, then there probably is none.
这篇关于WSDL.exe和命名空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!