You can easily set a dynamic endpoint for a WSOP. First, open up the Java file corresponding to the WSOP. By default it is located at:
<PROJECT_ROOT>/WEB-INF/src/connectivity.ws.operations
The name of the file is also, by default, the same as the WSOP. Inside the file, scroll to the bottom of the constructor and find the line that reads:
//}}END:CLASS:CONSTRUCTOR
Anything that comes before that is autogenerated and custom code will get overwritten if it is inserted there. After the above line, you can set your endpoint as follows:
endPoint = "http://customURL.com/WebService";
Addressing the properties file idea, the above line will set the URL to be whatever you want. So, you can just use some Java to open up a file and read in the URL from there, rather than typing it in string format. There are a ton of ways to open a file, but basically the end of the constructor would look something like:
//}}END:CLASS:CONSTRUCTOR
BufferedReader in = null;
try {
in = new BufferedReader(new FileReader("C:\\customURL.properties"));
endPoint = in.readLine();
}
catch(Exception e) {
e.printStackTrace();
}
You would have to modify each WSOP's Java file, though, as there's no single place where you can change all of them.