How to change the soap address in a web service. I am working on JBoss 7.1.1.
I have this class of web services:
@WebService public class Card { @WebMethod public CardResponseDTO insertCard( @WebParam(name = "cardRequestCardDTO") CardDTO cardDTO, @WebParam(name = "userName") String userName) { Date today; CardResponseDTO cardResponseDTO = new CardResponseDTO(); try { today = Calendar.getInstance().getTime();
And when I work on my localhost, it works fine with this WSDL:
<wsdl:service name="CardService"> <wsdl:port binding="tns:CardServiceSoapBinding" name="CardPort"> <soap:address location="http://localhost:8080/inventory-ws/Card"/> </wsdl:port> </wsdl:service>
But when I deploy to my server, which has the name server1.somedomain.com, it doesnβt work because I only got http: // server1: 8080 / ...
<wsdl:service name="CardService"> <wsdl:port binding="tns:CardServiceSoapBinding" name="CardPort"> <soap:address location="http://server1:8080/inventory-ws/Card"/> </wsdl:port> </wsdl:service>
I need how to make it work on my server with the full URL: server1.domedomain.com.
Thanks in advance.
source share