简体   繁体   中英

Dynamic Soap Url with Jax-rpc and netbeans

when generating a web service client in netbeans 6.9 I would like the ability to dynamically load the soap endpoint url from a config (Properties) file (eg dev vrs production urls). How can I accomplish that as netbeans ask for a literal url and then hard codes that url into multiple objects.

URL url =  this.getClass().getResource("/package/dir/propFile.properties");
prop = new Properties();
prop.load(new FileInputStream(new File(url.getFile())));

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM