Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[swordfish-dev] Swordfish Registry

Hi Runtime Team!

  Could you please apply attached SVN patch
  to org.eclipse.swordfish.registry project.
  We need in additional info (name) about
  deployed WSDL documents to display them
  in BPEL Designer Service Explorer (based
  on information from generated WSIL document).

  Thanks in advance.
  
-- 
Best regards,

    Alex                          mailto:atelesh@xxxxxxxxxxx
### Eclipse Workspace Patch 1.0
#P org.eclipse.swordfish.registry
Index: src/main/java/org/eclipse/swordfish/registry/WSILServlet.java
===================================================================
--- src/main/java/org/eclipse/swordfish/registry/WSILServlet.java	(revision 21347)
+++ src/main/java/org/eclipse/swordfish/registry/WSILServlet.java	(working copy)
@@ -138,10 +138,17 @@
 		"<inspection xmlns=\"http://schemas.xmlsoap.org/ws/2001/10/inspection/\";>\n"; 
 
 		static final public String ITEM_PREFIX =
-		"  <service>\n" + 
-		"    <description referencedNamespace=\"http://schemas.xmlsoap.org/wsdl/\"\n"; + 
+		"  <service>\n";
+
+		static final public String ITEM_DESC_PREFIX =
+		"    <description referencedNamespace=\"http://schemas.xmlsoap.org/wsdl/\"\n"; +
 		"                 location=\"";
-		static final public String ITEM_POSTFIX ="\"/>\n  </service>\n";
+		static final public String ITEM_DESC_POSTFIX ="\"/>\n";
+
+		static final public String ITEM_NAME_PREFIX = "    <name>";
+		static final public String ITEM_NAME_POSTFIX = "</name>\n";
+
+		static final public String ITEM_POSTFIX ="  </service>\n";
 		 
 		static final public String POSTFIX =
 				"</inspection>";
@@ -151,7 +158,10 @@
 
 			for(WSDLResource wsdlResource : resources) {
 				writer.append(ITEM_PREFIX);
+				writer.append(ITEM_NAME_PREFIX).append(wsdlResource.getId()).append(ITEM_NAME_POSTFIX);
+				writer.append(ITEM_DESC_PREFIX);
 				writer.append(baseUrl + "/" + wsdlResource.getId());
+				writer.append(ITEM_DESC_POSTFIX);
 				writer.append(ITEM_POSTFIX);
 			}
 			writer.append(POSTFIX);

Back to the top