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 175490

Summary: bpel XPath doesn't support xsd:any xsd:anyType
Product: soa Reporter: jbaragry <jbaragry>
Component: BPEL ProjectAssignee: Sergey Lunegov <slunegov>
Status: NEW ---    
Severity: blocker CC: rtenhove
Priority: P2    
Version: 6.x   
Hardware: Macintosh   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description jbaragry 2009-10-27 07:26:49 UTC
The current version of the bpel tooling throws errors if an XPath expression is used on an XML document which is not
defined in an XSD in the project. For instance, if a variable is defined in terms of xsd:any or xsd:anyType, and an
xpath expression is manually coded to extract information nested in the data structure. 

Consider the use of BPEL with REST BC to GET data from Twitter. The XSD is unknown but the data structure of the results
is visible to the developer. It should be possible to define a bpel variable as xsd:anyType and use XPath expressions to
extract data values from the data structure. 

E.g., 
http://twitter.com/statuses/user_timeline.xml?screen_name=jbaragry&count=2

       <variable name="getStatusesOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/TwitterStatusesBP/getTwitterStatuses"
messageType="tns:getStatusesResponse"/>
...
<copy>
               <from>count($getStatusesOut.part1/statuses/status)</from>
               <to variable="numStatuses"/>
</copy>
Comment 1 Sergey Lunegov 2009-10-27 09:08:29 UTC
For the next release.