Depending of a configuration file or wiring I want to change the endpoint address of a Web Service that my Portlet use. I generated the Web Service with the Web Service connector utility in WM 7. Right now my Portlet and my Web Service works good but the endpoint address used is the one in the wsdl file (static). In my portlet I tried to display the endpoint address but the result is empty (System.out.println("********** WS_SERVER " + queryAllergyService.getEndpointAddress());). How can I change the endpoint dynamically ?
Here the part of my wsdl file that contains the address of the service: