You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by mr...@apache.org on 2008/08/18 19:43:09 UTC
svn commit: r686829 -
/ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/service/DeploymentBrowser.java
Author: mriou
Date: Mon Aug 18 10:43:08 2008
New Revision: 686829
URL: http://svn.apache.org/viewvc?rev=686829&view=rev
Log:
Linking to the standard Axis2 WSDL URL in the deployments browser for classic services that could be deployed in the same Axis2 instance as ODE.
Modified:
ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/service/DeploymentBrowser.java
Modified: ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/service/DeploymentBrowser.java
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/service/DeploymentBrowser.java?rev=686829&r1=686828&r2=686829&view=diff
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/service/DeploymentBrowser.java (original)
+++ ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/service/DeploymentBrowser.java Mon Aug 18 10:43:08 2008
@@ -59,9 +59,19 @@
if (!"Version".equals(serviceName)) {
AxisService service = _config.getService(serviceName.toString());
- String url = service.getName();
- if (service.getFileName() != null)
- url = root + bundleUrlFor(service.getFileName().getFile());
+ // The service can be one of the dynamically registered ODE services, a process
+ // service or an unknown service deployed in the same Axis2 instance.
+ String url = null;
+ if ("DeploymentService".equals(service.getName())
+ || "InstanceManagement".equals(service.getName())
+ || "ProcessManagement".equals(service.getName()))
+ url = service.getName();
+ else if (service.getFileName() != null) {
+ String relative = bundleUrlFor(service.getFileName().getFile());
+ if (relative != null) url = root + relative;
+ else url = root + "/services/" + service.getName() + "?wsdl";
+ }
+
out.write("<p><a href=\"" + url + "\">" + serviceName + "</a></p>");
out.write("<ul><li>Endpoint: " + (root + "/processes/" + serviceName) + "</li>");