I have a simple Webservice which runs perfect local but if
deployed remotely, I have the problem that the generated
WSDL references the endpoint address 127.0.0.1 instead
of the hostname where the service is deployed:
[...] <service name="UpdateService"> <port binding="tns:UpdateServiceBinding" name="UpdateServicePort"> <soap:address location="http://127.0.0.1:9090/ws/ws-update"/> </port> </service> </definitions>
The URL for the web service should reflect the URL used to access the WSDL. Thus if you get the WSDL from localhost, the web service will indicate localhost. To get it to use the actual host name, access it using the hostname. But before you do this, make sure that you start the app server using the -b option (https://www.jboss.org/community/docs/DOC-10179)