Why is the WSDL fetched by JAX-WS on every WS call

2019-05-05 11:01发布

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?

1条回答
可以哭但决不认输i
2楼-- · 2019-05-05 12:02

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.

See the JAX-WS RI FAQ.

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.

查看更多
登录 后发表回答