01: package org.objectweb.salome_tmf.soap;
02:
03: import java.net.URL;
04: import java.util.Properties;
05:
06: import org.objectweb.salome_tmf.api.Api;
07: import org.objectweb.salome_tmf.api.Util;
08:
09: public class SOAPConstants {
10:
11: final static public String SOAP_CONFIG_FILE_PATH = "/cfg/SOAP.properties";
12:
13: public static String getUrlWebService() {
14: String url = "";
15: Properties prop;
16: try {
17: Util.log("[SOAPConstants->getUrlWebService] try to read "
18: + Api.getUrlBase() + SOAP_CONFIG_FILE_PATH);
19: prop = Util.getPropertiesFile(new URL(Api.getUrlBase()
20: + SOAP_CONFIG_FILE_PATH));
21: url = prop.getProperty("URLWebService");
22: } catch (Exception e) {
23: e.printStackTrace();
24: }
25:
26: return url;
27: }
28: }
|