jQuery in Action, 2nd edition*
The moose likes Web Services and the fly likes WSDL on internet shows IP address instead of hostname Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "WSDL on internet shows IP address instead of hostname" Watch "WSDL on internet shows IP address instead of hostname" New topic
Author

WSDL on internet shows IP address instead of hostname

Larry Dale
Greenhorn

Joined: Jan 05, 2010
Posts: 2
I created a webservice (my first!) using Eclipse Galileo and Axis2 (1.4.1). I deployed the service and everything seems to be running fine. The only problem is someone went looked at the wsdl file. They noticed that our IP address was shown instead of a hostname. It is in the soap's address location area.

<wsdl:service name="WebSvc">

<wsdl:port name="WebSvcHttpSoap11Endpoint" binding="ns:WebSvcSoap11Binding">
<soap:address location="http://??.??.??.???:8080/axis2/services/WebSvc.WebSvcHttpSoap12Endpoint/"/>
</wsdl:port>

<wsdl:port name="WebSvcHttpSoap11Endpoint" binding="ns:WebSvcHttpSoap11Endpoint">
<soap12:address location="http://??.??.??.???:8080/axis2/services/WebSvc.WebSvcHttpSoap12Endpoint/"/>
</wsdl:port>

<wsdl:port name="WebSvcHttpSoap11Endpoint" binding="ns:WebSvcHttpBinding">
<http:address location="http://??.??.??.???:8080/axis2/services/WebSvc.WebSvcHttpSoap12Endpoint/"/>
</wsdl:port>
</wsdl:service>

How do you get the "address location" to be a hostname???

Any help would be great.

Thanks!
 
jQuery in Action, 2nd edition
 
subject: WSDL on internet shows IP address instead of hostname