Diff for How to resolve a BPEL Xpath query in WSDL?

22. November 2009 - 20:06 by jonlee22. November 2009 - 20:23 by jonlee
Changes to Subject
-
How to resolve a BPEL Xpath query?
+
How to resolve a BPEL Xpath query in WSDL?
Changes to Body
Line 3Line 3
 
</p>
 
</p>
 
<p>
 
<p>
-
I have a question about XPath query in WSBPEL. Its Xpath query is not the same as a normal Xpath.
+
I have a question about XPath query in WSBPEL.
 
</p>
 
</p>
 
<p>
 
<p>
Line 12Line 12
 
</p>
 
</p>
 
<p>
 
<p>
-
but a normal XPath1.0 should perform something like:
+
but a normal XPath1.0 query in WSDL should perform something like:
 
</p>
 
</p>
 
<p>
 
<p>
-
<span class="comment">e:complexType[@name='AuctionResults']/e:sequence/e:element[name='AuctionResult']... </span>--&gt; BPEL query cares only about the ELEMENT NAME and ATT name.
+
<span class="comment">e:complexType[@name='AuctionResults']/e:sequence/e:element[name='AuctionResult']... </span>--&gt; BPEL query cares only about the element NAME and att name.
 
</p>
 
</p>
 
<p>
 
<p>
-
The question is how can I take the BPEL query &quot;<strong>/e:AuctionResult[2]/@AuctionID</strong>&quot; as an input and perfrom a right Xpath query in WSDL? Because when BPEL query uses some additional XPath functions library, the problems are complex to translate to the right XPath query as above.
+
For some reason, we build a programm to manipulate the BPEL query part &quot;<strong>/e:AuctionResult[2]/@AuctionID</strong>&quot; as an input and perfrom an Xpath query in WSDL to get for the corresponding element information. Because when BPEL query uses some additional XPath functions library, the problems are complex to translate to the right XPath query as above.What do people do to solve the problem?
 
</p>
 
</p>
 
<p>
 
<p>
Line 36Line 36
 
</p>
 
</p>
 
<p class="HTMLPreformatted1">
 
<p class="HTMLPreformatted1">
-
   &lt;xsd:sequence&gt;
+
&lt;xsd:sequence&gt;
 
</p>
 
</p>
 
<p class="HTMLPreformatted1">
 
<p class="HTMLPreformatted1">
-
      &lt;xsd:element name=&quot;AuctionResult&quot;
+
&lt;xsd:element name=&quot;AuctionResult&quot;
 
maxOccurs=&quot;unbounded&quot;
 
maxOccurs=&quot;unbounded&quot;
 
</p>
 
</p>
 
<p class="HTMLPreformatted1">
 
<p class="HTMLPreformatted1">
-
                   form=&quot;qualified&quot;&gt;
+
form=&quot;qualified&quot;&gt;
 
</p>
 
</p>
 
<p class="HTMLPreformatted1">
 
<p class="HTMLPreformatted1">
-
         &lt;xsd:complexType&gt;
+
&lt;xsd:complexType&gt;
 
</p>
 
</p>
 
<p class="HTMLPreformatted1">
 
<p class="HTMLPreformatted1">
-
            &lt;xsd:attribute
+
&lt;xsd:attribute
 
name=&quot;AuctionID&quot; type=&quot;xsd:int&quot;/&gt;
 
name=&quot;AuctionID&quot; type=&quot;xsd:int&quot;/&gt;
 
</p>
 
</p>
 
<p class="HTMLPreformatted1">
 
<p class="HTMLPreformatted1">
-
            &lt;xsd:attribute
+
&lt;xsd:attribute
 
name=&quot;Result&quot; type=&quot;xsd:string&quot;/&gt;
 
name=&quot;Result&quot; type=&quot;xsd:string&quot;/&gt;
 
</p>
 
</p>
 
<p class="HTMLPreformatted1">
 
<p class="HTMLPreformatted1">
-
         &lt;/xsd:complexType&gt;
+
&lt;/xsd:complexType&gt;
 
</p>
 
</p>
 
<p class="HTMLPreformatted1">
 
<p class="HTMLPreformatted1">
-
      &lt;/xsd:element&gt;
+
&lt;/xsd:element&gt;
 
</p>
 
</p>
 
<p class="HTMLPreformatted1">
 
<p class="HTMLPreformatted1">
-
   &lt;/xsd:sequence&gt;
+
&lt;/xsd:sequence&gt;
 
</p>
 
</p>
 
<p class="HTMLPreformatted1">
 
<p class="HTMLPreformatted1">
Revision of 22. November 2009 - 20:23:

How to resolve a BPEL Xpath query in WSDL?

Hi,

I have a question about XPath query in WSBPEL.

Let's take an example from WSBPEL 2.0 specification, a BPEL query:

<from>$Results/e:AuctionResult[2]/@AuctionID</from>

but a normal XPath1.0 query in WSDL should perform something like:

e:complexType[@name='AuctionResults']/e:sequence/e:element[name='AuctionResult']... --> BPEL query cares only about the element NAME and att name.

For some reason, we build a programm to manipulate the BPEL query part "/e:AuctionResult[2]/@AuctionID" as an input and perfrom an Xpath query in WSDL to get for the corresponding element information. Because when BPEL query uses some additional XPath functions library, the problems are complex to translate to the right XPath query as above.What do people do to solve the problem?

Hope someone would help

I'm really appreciate. Thank you very much

------------------------------------------------------------------------------------------------------------

<xsd:complexType name="AuctionResults">

<xsd:sequence>

<xsd:element name="AuctionResult" maxOccurs="unbounded"

form="qualified">

<xsd:complexType>

<xsd:attribute name="AuctionID" type="xsd:int"/>

<xsd:attribute name="Result" type="xsd:string"/>

</xsd:complexType>

</xsd:element>

</xsd:sequence>

</xsd:complexType>

 

XML.org Focus Areas: BPEL | DITA | ebXML | IDtrust | OpenDocument | SAML | UBL | UDDI
OASIS sites: OASIS | Cover Pages | XML.org | AMQP | CGM Open | eGov | Emergency | IDtrust | LegalXML | Open CSA | OSLC | WS-I