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 130053 - Mapper does not work with a referenced elements
Summary: Mapper does not work with a referenced elements
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL Mapper (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Nikita Krjukov
URL:
Keywords:
Depends on: 130156
Blocks:
  Show dependency tree
 
Reported: 2008-03-13 15:41 UTC by Kirill Sorokin
Modified: 2009-03-21 08:41 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
project to represent issue with referenced element (8.33 KB, application/x-compressed)
2008-03-13 17:09 UTC, Vitaly Bychkov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kirill Sorokin 2008-03-13 15:41:41 UTC
The project has been shared on the BPEL i-team alias. I will attach it here, if it is safe to be published.
Comment 1 Vitaly Bychkov 2008-03-13 17:07:25 UTC
There is small project to reproduce issue in the attachment.
some notes on project:
in bpel
..................................
        <assign name="Assign1">
            <copy>
                <from>'AAAA'</from>
                <to>$PurchaseWSDLOperationOut.part1/ns0:city</to>
            </copy>
            <copy>
                <from>'BBB'</from>
                <to>$PurchaseWSDLOperationOut.part1/ns0:comment</to>
            </copy>
        </assign>
..................................
where comment in $PurchaseWSDLOperationOut.part1/ns0:comment is reference
see in xsd:
..................................
    <xsd:complexType name="USAddress">
        <xsd:sequence>
            <xsd:element name="name"   type="xsd:string"/>
            <xsd:element name="street" type="xsd:string"/>
            <xsd:element name="city"   type="xsd:string"/>
            <xsd:element name="state"  type="xsd:string"/>
            <xsd:element name="zip"    type="xsd:decimal"/>
            <xsd:element ref="tns:comment"/>
        </xsd:sequence>
        <xsd:attribute name="country" type="xsd:NMTOKEN"
                       fixed="US"/>
    </xsd:complexType>

..................................

So any mappings to the USAddress/comment aren't shown in the bpel mapper.


The same problem is for the project which uses HL7 schema.
Comment 2 Vitaly Bychkov 2008-03-13 17:09:17 UTC
Created attachment 58332 [details]
project to represent issue with referenced element
Comment 3 Vitaly Bychkov 2008-03-13 17:10:25 UTC
Nikita please look at this.
Comment 4 Nikita Krjukov 2008-03-16 12:44:28 UTC
Please verify it. 

The additiona workaroud is added. It checks if the XDM dom model is used. 
If so the ElementReference isn't considered as a possible child element of 
the parent Schema component. 

The workaround has to be removed after the isssue #130156 is fixed! 
Comment 5 Andrei Chistiakov 2008-04-10 14:53:29 UTC
Verified with NetBeans IDE 6.1 RC1 (Build 200804100130)
Comment 6 Nikita Krjukov 2009-03-19 18:28:56 UTC
The fix is removed from the trunk because it utilized a workaround, which has been depended on the issue #130156. 
After the issue #130156 has fixed the changes has become unnecessary. I tested the issue after removing the workaround.

The change set is here: http://hg.netbeans.org/main/rev/ef83914db24f
Comment 7 Quality Engineering 2009-03-21 08:41:13 UTC
Integrated into 'main-golden', will be available in build *200903210201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/ef83914db24f
User: supernikita@netbeans.org
Log: Remove workaround related to the issues #105159, #111107, #130053 after the isssue #130156 has fixed