Is wsdl used at runtime for actually making a connection

て烟熏妆下的殇ゞ 提交于 2019-12-08 01:40:54

问题


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?


回答1:


It depends on the language. You didn't specify what you're using, but - for example...

  • 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.


来源:https://stackoverflow.com/questions/17904653/is-wsdl-used-at-runtime-for-actually-making-a-connection

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!