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

Bug 252257

Summary: Update the WSDL validator to use WSDL4J 1.5.1
Product: [WebTools] WTP Webservices Reporter: Valentin Baciu <valentinbaciu>
Component: wst.wsdlAssignee: Amy Wu <for.work.things>
Status: CLOSED FIXED QA Contact: Valentin Baciu <valentinbaciu>
Severity: enhancement    
Priority: P3 Keywords: plan
Version: 3.1   
Target Milestone: 3.1 M5   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 197197, 235821    
Attachments:
Description Flags
org.eclipse.wst.wsdl.validation.txt
none
org.eclipse.wst.wsdl.validation.tests.txt none

Description Valentin Baciu CLA 2008-10-27 15:44:25 EDT
This enhancement request will track the updates required in the WSDL validator to enable it to use javax.wsdl_1.5.1.
Comment 1 Amy Wu CLA 2008-11-05 16:20:53 EST
Upgrading org.eclipse.wst.wsdl.validation (and org.eclipse.wst.wsdl.validation.tests) to use WSDL4J 1.5.1 has been going fine thus far.

Here are the main changes I had to look out for when upgrading
- some constants that used to be in com.ibm.wsdl.Constants got moved to com.ibm.wsdl.extensions.schema.SchemaConstants
- some methods in DOMUtils now expect a Definition to be passed in as an argument
- StringUtils.getContentAsReader() became StringUtils.getContentAsInputStream()
- schema elements are no longer of type UnknownExtensibilityElement.  they are now of type Schema.

The last one was the trickiest to fix since all the other changes were compile errors.  I didn't notice the last one until I ran through the unit tests and saw all the failure/errors.

I'm now down to 1 junit test failure, and I'm just unsure as to whether the unit test needs to be updated or if there really is a problem to fix.

After I get to the bottom of that problem, my next step will be to add some more unit tests that will test for some wsdl 1.5.1 fixes.
Comment 2 Amy Wu CLA 2008-12-03 12:05:27 EST
Created attachment 119400 [details]
org.eclipse.wst.wsdl.validation.txt

Here's a patch with the changes necessary to upgrade the wsdl.validation plugin to use wsdl4j 1.5.x.  See my previous comment for changes I made.

Valentin & I talked about increasing the minor version number of the plugin to indicate a major change. I have not done that yet in this patch because this will require changes to other plugins.  This patch is just to review/test the upgrade.  I can attach another patch with the version number increase and changes to all plugins affected once this patch looks alright.
Comment 3 Amy Wu CLA 2008-12-03 12:07:48 EST
Created attachment 119401 [details]
org.eclipse.wst.wsdl.validation.tests.txt

Here's the corresponding test plugin patch.  In addition to the changes for wsdl4j, I also added 4 new unit tests to test the additional element extensibility support new in jwsdl 1.1.
Comment 4 Amy Wu CLA 2009-01-14 13:53:04 EST
I've released the fix for this week's wtp 3.1 m5 ibuild.
Comment 5 Valentin Baciu CLA 2009-01-19 14:00:43 EST
Verified with I-3.1-20090119095149.
Comment 6 Amy Wu CLA 2009-01-20 11:17:21 EST
closing