| Summary: | Underlying WSDL EMF model does not resolve element references on DOM update | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP Webservices | Reporter: | Stanislav Nichev <stanislav.nichev> | ||||||
| Component: | wst.wsdl | Assignee: | wst.wsdl <wst.wsdl-inbox> | ||||||
| Status: | REOPENED --- | QA Contact: | Keith Chong <keith.chong.ca> | ||||||
| Severity: | normal | ||||||||
| Priority: | P3 | ||||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows Vista | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Stanislav Nichev
Created attachment 190111 [details] sample wsdl file to reproduce the issue Short description of the WSDL: Namespace "http://www.example.org/NewWSDLFile/" and namespace "http://namespace1" both contain the "GlobalElement" global element. In the first namespace, there is a complex type: "StructureType1". This type has a child element referring the "GlobalElement" from the first namespace. In order to reproduce the issue, update the prefix in 'type="tns:GlobalElement"' to 'type="ns0:GlobalElement"' Regards, Stanislav Try this: Add this to the first inline schema <xsd:import namespace="http://namespace1"/> Hi Keith, Of course this fixes the problem in the test case :)! Thank you for the info and the quick reply. But the problem still exists - I'll try to provide a more valid "working" test case. I'll reopen the bugzilla when I do. Regards, Stanislav Created attachment 190294 [details] wsdl file to reproduce the issue Hi Colleagues, I've managed to find a reproducible test case: 1) Open the attached WSDL 2) Go to the source page and update (preferrably in a composite operation): - targetNamespace of the wsdl and the xmlns:tns by adding "aaa" - the targetNamespace of the first namespace by adding "aaa" - the import directive of the second namespace by adding "aaa" 3) When this is one - no validation errors on the underlying EMF model 4) Execute Undo The EMF model objects for the <wsdl:input message="tns:NewOperationRequest" /> and <wsdl:output message="tns:NewOperationResponse" /> messages are now "broken" and not reconciled. The XSDElementDeclarationReference for both the child elements, referring to global elements are now "broken" as well: - XSD: Element reference http://www.example.org/NewWSDLFile/aaa#NewOperation is unresolved - XSD: Element reference http://www.example.org/NewWSDLFile/aaa#GlobalElement is unresolved Similar test cases can be found for this issue, but I'm guessing the source of the problem is one and the same. Regards, Stanislav I've updated the test case with a valid one and thus - reopening the bugzilla. |