if (log.isDebugEnabled()) {
log.debug("ProxyService Deployment from file : " + fileName + " : Started");
}
try {
ProxyService proxy = ProxyServiceFactory.createProxy(artifactConfig, properties);
if (proxy != null) {
proxy.setFileName((new File(fileName)).getName());
if (log.isDebugEnabled()) {
log.debug("ProxyService named '" + proxy.getName()
+ "' has been built from the file " + fileName);
}
initializeProxy(proxy);
if (log.isDebugEnabled()) {
log.debug("Initialized the ProxyService : " + proxy.getName());
}
proxy.buildAxisService(getSynapseConfiguration(),
getSynapseConfiguration().getAxisConfiguration());
if (log.isDebugEnabled()) {
log.debug("Started the ProxyService : " + proxy.getName());
}
getSynapseConfiguration().addProxyService(proxy.getName(), proxy);
if (log.isDebugEnabled()) {
log.debug("ProxyService Deployment from file : " + fileName + " : Completed");
}
log.info("ProxyService named '" + proxy.getName()
+ "' has been deployed from file : " + fileName);
return proxy.getName();
} else {
handleSynapseArtifactDeploymentError("ProxyService Deployment Failed. The " +
"artifact described in the file " + fileName + " is not a ProxyService");
}
} catch (Exception e) {