This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 116014 - Incorrect filter-one-way transformation is created if both implemented and called wsdls have the same file name
Summary: Incorrect filter-one-way transformation is created if both implemented and ca...
Status: RESOLVED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: XSLT (show other bugs)
Version: 6.x
Hardware: PC All
: P2 blocker (vote)
Assignee: Vitaly Bychkov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-19 15:22 UTC by Andrei Chistiakov
Modified: 2009-11-24 07:42 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Sample projects (17.10 KB, application/zip)
2009-11-24 07:42 UTC, Vitaly Bychkov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Chistiakov 2007-09-19 15:22:44 UTC
Reproduced in build 00709190000.

- create XSLT project P1;
- add PurchaseOrder schema into the project;
- create 'newWSDL' WSDL file defining filter one way transformation with purchaseOrder input element;
- create XSLT project P2;
- add LoanApplication schema into the project;
- create 'newWSDL' WSDL file defining filter one way transformation with autoLoanApplication input element;
- add a reference to project P2 into P1 (P1 should contain a reference to P2);
- in P1 create one way Service Bridge transformation which implements [P1]newWSDL and calls [P2]newWSDL. Complete the
wizard.

In the opened XSLT Designer both source and target trees display the structure of PO document.
Comment 1 Vitaly Bychkov 2007-09-28 16:29:47 UTC
The issue happens because both wsdls have similar namespaces.
Currenly for xslt project we don't support wsdls with similar namespaces.

It's planned in the next release to provide validation message in this case.
Comment 2 Vladimir Yaroslavskiy 2008-06-06 15:45:32 UTC
Remove "depends on 117043": please create new issue for wsdl validation rule and set its number
Comment 3 Vitaly Bychkov 2009-11-24 07:36:45 UTC
The issue is fixed.
For now transformation descriptor(transformmap.xml) supports imports.
As a result there is no more problem with resolving wsdls with the same file name.

More over the validation support was implemented and as a result in case there are wsdls with the same namespace and the same elements then validation error appears e.g.: 
"ERROR: Ambiguous definition of the operation "newWSDLOperation" in 2 imported WSDL files "_4/newWSDL.wsdl" and "newWSDL.wsdl"."


For now there is no design mode in XSLT Service Designer, but the correctness can be checked with looking at transformmap.xml - correspondent <service and <invoke PortType QName values are different and uses correct namespaces.

The sample project are in attachment.
Comment 4 Vitaly Bychkov 2009-11-24 07:42:01 UTC
Created attachment 91607 [details]
Sample projects