Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 118087

Summary: UDDI custom taxonomies cannot be loaded into the WSExplorer
Product: [WebTools] WTP Webservices Reporter: Chris Brealey <cbrealey>
Component: wst.wsAssignee: Chris Brealey <cbrealey>
Status: CLOSED FIXED QA Contact:
Severity: critical    
Priority: P3 CC: gilberta, jeffliu, katep
Version: unspecified   
Target Milestone: 1.0 M10   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Registry Model support, early draft
none
Registry Model support, early draft JUnit tests
none
Patch for org.eclipse.wst.ws.explorer none

Description Chris Brealey CLA 2005-11-25 12:24:13 EST
Once upon a time the Web Services Explorer was capable of loading custom taxonomies for use by UDDI registries in addition to the standard taxonomies (NAICS, UNSPSC, ISO-3166), but lost this capability in the early days of the WSExplorer in the WTP project. We have a simple, internal programming model in place that will re-enable this capability, and is required to support a variety of available UDDI registries, many of which support custom taxonomies.
Comment 1 Chris Brealey CLA 2005-11-25 16:48:51 EST
Created attachment 30645 [details]
Registry Model support, early draft

This patch contains a fairly complete internal programming model based on EMF for manipulating Web service registry descriptors and taxonomies. The implementation is partly there. Further patches to replace the "TODO"s (many of which say "implement me"!) are coming soon.
Comment 2 Chris Brealey CLA 2005-11-25 16:50:54 EST
Created attachment 30646 [details]
Registry Model support, early draft JUnit tests

This patch contains a couple initial and oversimplified JUnit tests to sniff test the registry descriptor programming model. The JUnit tests in this patch need to be more resilient and do some actual assert() calls, and many more JUnit tests need to be defined for other methods in the internal programming model.
Comment 3 Chris Brealey CLA 2005-11-25 16:57:40 EST
Committed and released both patches, tag v20051125_1700, but will not resolve the bug yet since more changes (implementation bits and more JUnits) are still on the way.
Comment 4 Chris Brealey CLA 2005-11-30 21:50:35 EST
Attached patches should be ignored now. More recent updates have been committed directly to HEAD, the latest under tag v20051130_1805. At this point, the base framework is implemented and mostly tested. The majority of the work that remains is to have the Web Services Explorer automatically load any registry descriptors and taxonomies via RegistryService.getDefaultRegistryManager(). The bug will remain open until the Web Services Explorer portion of the work is completed.
Comment 5 Jeffrey Liu CLA 2005-12-02 10:56:30 EST
Created attachment 31033 [details]
Patch for org.eclipse.wst.ws.explorer

One todo:

In org.eclipse.wst.ws.internal.explorer.platform.favorites.actions.AddToUDDIPerspectiveAction, near the end of the createRegistryInUDDIPerspective(...) method, the current TModel Key is set to the taxonomy name. This is incorrect and will cause publish to fail. We should set this to the real TModel key for the taxonomy.
Comment 6 Chris Brealey CLA 2005-12-03 00:43:26 EST
Jeffrey, thanks very much for the patch. I committed it with a change to AddToUDDIPerspectiveAction.java to use Taxonomy's new "tmodelKey" property. I then committed a follow-up set of minor changes in which I replaced "Taxonomies" by "Taxonomy[]" to account for changes I made today in the RegistryService framework in which the Taxonomy models retrieved from a UDDIRegistry are in fact references and must be "resolved" to the real deals.

The WSExplorer seems happy with the changes, although I am getting an NPE in uddi/category_content.jsp (not sure on what line) when I attempt to browse the contents of the automatically loaded category after selecting it under the Category table of the automatically loaded registry. I don't remember if this is the point at which the bogus tmodelKey rears its ugly head and is supposed to cause an explosion like this, or if I should have been able to browse the categories in the taxonomy.
Comment 7 Chris Brealey CLA 2005-12-05 00:16:09 EST
Latest changes released under tag v20051205_0015.
Comment 8 Chris Brealey CLA 2005-12-05 16:51:29 EST
Fixed a glitch in AddToUDDIPerspectiveAction where the category model was being indexed by the wrong key - the name instead of the tmodelKey. This was leading to the NPE described in comment 6 (thanks Jeff).

Latest changes released under tag v20051205_1650.
Comment 9 Chris Brealey CLA 2005-12-05 17:24:45 EST
Kate, the changes for this bug are resulting in some relatively small changes to the Web Services Explorer's Favorites view, namely the addition of a new "Favorite User Defined UDDI Registries" folder. Do you want a separate bug opened to track this?
Comment 10 Chris Brealey CLA 2005-12-06 08:21:10 EST
Resolving as complete. JUnits are passing, and the WSExplorer is processing the registry and taxonomy descriptors normally up to the point of publication.
Comment 11 Chris Brealey CLA 2005-12-13 09:23:49 EST
Completed.