Java tutorial
//package com.java2s; import java.util.Map; import javax.xml.ws.BindingProvider; public class Main { public static void setSoapEndpointUrl(Object wsProxy, String soapUrl) { javax.xml.ws.BindingProvider bp = (javax.xml.ws.BindingProvider) wsProxy /*port*/; Map<String, Object> context = bp.getRequestContext(); context.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, soapUrl); } }