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 - bpel XPath doesn't support xsd:any xsd:anyType
Summary: bpel XPath doesn't support xsd:any xsd:anyType
Status: NEW
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL Project (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P2 blocker (vote)
Assignee: Sergey Lunegov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-27 07:26 UTC by jbaragry
Modified: 2011-11-30 16:23 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.