Created
August 25, 2017 08:48
-
-
Save dmarrazzo/712eb2d99ec0b933c839b23b2a9c079c to your computer and use it in GitHub Desktop.
utility class to load endpoint and wsdl URL from system props
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package utils; | |
public class EnvInfo { | |
private static String MOCK = "http://mas460:8088/mockPecManagerWsPortBinding"; | |
public static String wsdl(String name){ | |
return System.getProperty(name+"-wsdl", endpoint(name)+"?WSDL"); | |
} | |
public static String endpoint(String name){ | |
return System.getProperty(name, MOCK); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment