I have a java web service deployed on my local Tomcat server. I am able to access it through a java client from my local machine. I would like to access the same service from a remote machine in the same network. On the remote machine I generated the client for the web service using the wsdl url. however the soap address location in wsdl is as shown below: <wsdlsoap:address location="http://localhost:8080/HelloService/services/Hello"/>
To use this client to access the service would it be enough to change all references to localhost with the machine IP on which the service is deployed... ? Please advise.
You don't need to edit the WSDL; you can set the end-point in the port programmatically.
是的,只需将localhost更改为您的网络主机名或IP地址
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.