在运行时是否使用wsdl进行实际连接 [英] Is wsdl used at runtime for actually making a connection
本文介绍了在运行时是否使用wsdl进行实际连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我使用wsdl生成Web服务客户端类之后,是否仍需要在运行时使用wsdl? 似乎没有必要,但是在生成的类中,我看到了指向wsdl文件的url链接.那么客户端在运行时需要wdl来使用Web服务吗?
After i have used wsdl to generate web service client classes, do i still need to use the wsdl at runtime? It seems like i dont have to, but in the generated classes , I see a url link to the wsdl file. So is the wsdl needed at runtime for the client to consume the web services?
推荐答案
这取决于语言.您没有指定正在使用的内容,但是-例如...
It depends on the language. You didn't specify what you're using, but - for example...
- 在c#中,如果通过Visual Studio生成代理,则WSDL不是 在运行时使用;它会为您生成一个供您使用的类.
- 我看过其他需要WSDL本地副本的客户端; 较旧版本的MS Soap Toolkit需要一个.我们遇到了这个 在VB6中使用该工具包时.
- 根据此问题,java需要运行时的wsdl 因为某些依赖项是在运行时生成的.
- In c#, if you generate a proxy via Visual Studio, the WSDL is not used at runtime; it generates a class for you that is used instead.
- I have seen other clients that require a local copy of the WSDL; older versions of the MS Soap Toolkit required one. We ran into this when using that toolkit with VB6.
- According to this question, java requires a wsdl at runtime because some dependencies are generated at runtime.
这篇关于在运行时是否使用wsdl进行实际连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文