Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/399.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cocoa/3.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 如何更改端点url?_Java_Web Services_Websphere_Jax Ws - Fatal编程技术网

Java 如何更改端点url?

Java 如何更改端点url?,java,web-services,websphere,jax-ws,Java,Web Services,Websphere,Jax Ws,我尝试在WebSphere8.5.5.6上部署我的应用程序。如果我像这样运行我的应用程序 public static void main(String [] args){ Endpoint endpoint = Endpoint.create(new GenericAccountImpl); endpoint.publish("http://0.0.0.0:9084/service/GenericAccount") } 它工作得很好。但是,当我尝试在WAS上部署它(它托管在

我尝试在WebSphere8.5.5.6上部署我的应用程序。如果我像这样运行我的应用程序

public static void main(String [] args){
     Endpoint endpoint = Endpoint.create(new GenericAccountImpl);
     endpoint.publish("http://0.0.0.0:9084/service/GenericAccount")
}

它工作得很好。但是,当我尝试在WAS上部署它(它托管在另一台机器上)时,它不起作用

在部署到像WebSphere这样的EE应用服务器时,您不仅仅需要硬编码端点URL

发件人:

包含在已发布WSDL文件中的实际端点URL 由前缀和模块的上下文根以及 例如,web服务url模式,


我的wsdl文件包含它。但它还是不起作用。我在wsdl文件中的url是
http://myHost:9084/context-root/services/GenericAccount
。但这对我没有帮助。会出什么问题?这是自由还是传统的WebSphere?Kurtz,假设它是传统的。在日志头
Websphere[IBMJAVA71 7.1.3.10 cf071533.01]平台8.5.5.6[ND 8.5.5.6]中,以进程名SBT运行…