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 129411

Summary: Mapper does not generate proper prefixes for XPath expressions
Product: soa Reporter: Kirill Sorokin <ksorokin>
Component: BPEL MapperAssignee: Nikita Krjukov <supernikita>
Status: VERIFIED FIXED    
Severity: blocker CC: sebsto
Priority: P1    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Sample project

Description Kirill Sorokin 2008-03-06 15:02:41 UTC
BPEL Mapper does add proper prefixes to generated XPath expressions, if the prefix for the namespace they are using is
not declared in the BPEL document. Once you declare the prefix, it will be generated correctly. 

I'm attaching a sample project -- just do some mapping for the only Assign out there.
Comment 1 Kirill Sorokin 2008-03-06 15:03:18 UTC
Created attachment 57883 [details]
Sample project
Comment 2 Kirill Sorokin 2008-03-06 15:04:33 UTC
Possibly related: issue 126037.
Comment 3 Alexey Yarmolenko 2008-03-06 15:17:33 UTC
Assigning to Nikita for evaluation
Comment 4 Nikita Krjukov 2008-03-07 11:57:53 UTC
Now the XPath model is responsible for generating prefixes. 
It's necessary to specify an ExNamespaceContext instead of simple NamespaceContext
See the XPathModel.setNamespaceContext() interface for details 
Comment 5 Andrei Chistiakov 2008-04-10 14:47:52 UTC
Verified with NetBeans IDE 6.1 RC1 (Build 200804100130).