Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/338.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 使用JAX-WS共享web服务_Java_Web Services_Jax Ws - Fatal编程技术网

Java 使用JAX-WS共享web服务

Java 使用JAX-WS共享web服务,java,web-services,jax-ws,Java,Web Services,Jax Ws,在每次调用ws之前,我需要能够从web.xml文件中读取主机名和端口。那么,我如何在JAX-WS中做到这一点呢?这是不可能的吗?您可以像访问任何其他用途一样访问参数:

在每次调用ws之前,我需要能够从web.xml文件中读取主机名和端口。那么,我如何在JAX-WS中做到这一点呢?这是不可能的吗?

您可以像访问任何其他用途一样访问参数: