Author Message
BrisyGarcia
Joined: May 4, 2015
Messages: 65
Offline
Hi, is there an easy way to switch webservices from test to production? We have 3 environments to move the application to but the way I have it coded, I need to change the actual webservice URL to point to each environments, as well, as changing the call flows; and I have a lot of webservices. Please advise.
RossYakulis
Joined: Nov 6, 2013
Messages: 2652
Offline
The url is stored in the web.xml file. You can edit that.
BrisyGarcia
Joined: May 4, 2015
Messages: 65
Offline
I was thinking of using an if else statement to include all three url but I would need to know how to determine what environment I'm in. Is there a way and would you be able to tell me how to code for it? Thx.
RossYakulis
Joined: Nov 6, 2013
Messages: 2652
Offline
if (mySession.getPlatformSettings().getPlatform().equals(SCERT.PLATFORM_IR) == true) {
} else if (mySession.getPlatformSettings().getPlatform().equals(SCERT.PLATFORM_VP) == true) {
} else if (mySession.getPlatformSettings().getPlatform().equals(SCERT.PLATFORM_AAEP) == true) {
} else if (mySession.getPlatformSettings().getPlatform().equals(SCERT.PLATFORM_DESKTOP) == true) {
} else if (mySession.getPlatformSettings().getPlatform().equals(SCERT.PLATFORM_MPS) == true) {
} else {
}
Go to:   
Mobile view