为什么在每个WS调用中JAX-WS都会获取WSDL? [英] Why is the WSDL fetched by JAX-WS on every WS call?

查看:87
本文介绍了为什么在每个WS调用中JAX-WS都会获取WSDL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用NetBeans和JAX-WS,并且看到每次调用WS都会获取WSDL.有办法避免这种情况吗?有配置吗?

I'm playing around with NetBeans and JAX-WS and I see that the WSDL is fetched every time a WS is called. Is there a way to avoid this? Is there some configuration?

推荐答案

这归因于WS-Policy和其他WSDL功能带到表中的对后期绑定的支持以及众多的配置选项.

It is due to the support for late-binding and the myriad of configuration options that WS-Policy and other WSDL features bring to the table.

请参见 JAX-WS RI常见问题解答.

对于微不足道的情况,是的,这有点愚蠢,并且增加了一些开销.一旦您进入了一个复杂的环境,并且其中的多个实现以略有不同的配置运行,便完全有意义.

For the trivial case, yes it is a bit silly and adds some overhead. Once you get into a complex environment with multiple implementations running with slightly different configurations, it makes complete sense.

这篇关于为什么在每个WS调用中JAX-WS都会获取WSDL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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