更新时间:2023-09-11 22:28:10
我的猜测是生成客户端的WSDL包含与WS-AtomicTransaction相关的策略断言。由于WS-AtomicTransaction需要事务管理器且JRE不包含事务管理器,因此JRE中的JAX-WS运行时不支持WS-AtomicTransaction并且不理解这些策略断言也就不足为奇了。
My guess is that the WSDL from which the client was generated contains policy assertions related to WS-AtomicTransaction. Since WS-AtomicTransaction requires a transaction manager and the JRE doesn't contain one, it's not surprising that the JAX-WS runtime in the JRE has no support for WS-AtomicTransaction and doesn't understand these policy assertions.
如果您不需要WS-AtomicTransaction,那么您有两个选项可以摆脱这些警告:
If you don't need WS-AtomicTransaction, then you have two options to get rid of these warnings:
如果您需要WS-AtomicTransaction,那么您可能必须在应用程序服务器或Java EE应用程序客户端中运行代码。
If you need WS-AtomicTransaction, then you will probably have to run the code in an application server or as a Java EE application client.