I would like to programmatically configure a proxy server when invoking a web service using soap and jax-rpc from java/spring boot application. I know this can be done through system properties
System.setProperty("http.proxyHost", proxyHost);
System.setProperty("http.proxyPort", proxyPort);
but is there a way to configure it only for one service/client call rather than for the whole application? I found this example based on Oracle weblogic but I am using java app with spring boot/tomcat and jboss/jaxrpc libraries and cannot use HttpTransportInfo. Also found someone looking for Jboss implementation of it HttpTransportInfo