Community
Participate
Working Groups
Created attachment 77082 [details] WSDL that reports error. Build ID: M20070212-1330 Steps To Reproduce: Legal WSDLs report error such as: src-resolve: Cannot resolve the name 'dsns0:CUSTOMER_KEY' to a(n) 'element declaration' component. I will attach WSDL that reports error and wsdl that does not report error. More information: From the attached WSDL, delete lines 27, 28 and the error will be gone. Deleted lines merge the two schema sections that have same TNS into a single schema section.
Created attachment 77083 [details] Deleted line numbers 36 and 37 from original wsdl.
Any update on this bug? Thanks.
To elaborate on the issue further, there are 3 inline schemas A, B and C. Schemas B and C have the same tns. Schema A tries to reference an element in Schemba B but validation fails with the error. Valentin, can you comment from a validation perspective? A related bug has also been found. While using the set Element reference dialog to set a Part's Element reference, the appropriate namespace is not added to the WSDL definition. This occurs when the Element is from an inline schema with a different targetnamespace than the WSDL definition. The fix for this would be to add the inline schema targetnamespace to the WSDL definition (xmlns:prefix="ld:CUSTOMER") and use the prefix when setting the Part's Element reference.
From my understanding of the Xerces schema model this one will be quite a challenge to fix. Sachin, feel free to donate a patch... we'd love to have more folks contributing to the upkeep of the xml validators.
From the WSDL validation point of view this looks like a duplicate of bug 199615. As I said in there, the WSDL validator has never supported this scenario.
Marking as duplicate of bug 199615. Richard, please open a separate bug for your other finding. *** This bug has been marked as a duplicate of bug 199615 ***
Closing. Please re-open if you do not concur.
Richard Mah suggested: "The fix for this would be to add the inline schema targetnamespace to the WSDL definition (xmlns:prefix="ld:CUSTOMER") and use the prefix when setting the Part's Element reference." Richard, Can you clarify what change to the wsdl would make this problem go away? If you can attach a modified wsdl that does not show the error in WTP, it would help me possibly workaround the issue. Thanks.
Please see https://bugs.eclipse.org/bugs/show_bug.cgi?id=202516 for an example of the problem and the solution. Thanks Sachin.