运行期间使用Metro / JAX-WS / WSIT的WSDL请求

问题描述:

在运行时期间,即使JAX-WS已经在IDE中运行了wsimport,它也会获取SOAP端点的WSDL。此行为如下所示: http://jax-ws.java.net/faq /index.html#wsdl_at_runtime

During runtime, JAX-WS fetches the WSDL of a SOAP endpoint even though it already ran wsimport in the IDE. This behavior is illustrated here: http://jax-ws.java.net/faq/index.html#wsdl_at_runtime

客户端可以在运行时检索元数据量是否有限制?如果是这样,有没有办法增加这个限制?

Is there a limit to amount of metadata that a client can retrieve during runtime? If so, is there a way to increase this limit?

请注意,我不是指在IDE内运行wsimport;这工作正常。我特别讨论了在运行时获取WSDL元数据。

Please note that I am not referring to running wsimport inside the IDE; that works fine. I'm specifically talking about fetching the WSDL metadata during runtime.

用解决方案。我在Netbeans与Metro一起工作在Glassfish环境中。如果我们将WEB-INF复制到源包文件夹中,一切正常。 java运行时现在可以绑定到jaxws-catalog.xml文件中的相对路径。如果不复制该文件夹,它将无法工作。

After many long hours spent on this problem, we came up with a solution. I was working in a Glassfish environment with Metro in Netbeans. If we copied the WEB-INF to the source packages folder everything worked. The java runtime could now bind to the relative path in the jaxws-catalog.xml file. Without copying that folder, it wouldn't work.