This content has been marked as final.
Show 3 replies
-
1. Re: How to do XPath query in BPEL?
zazzaz Oct 23, 2007 4:07 PM (in response to zazzaz)I think it's OK like this. Suppose LoginOperationRequestVar is of type LoginOperationRequest and ControlloAccessoOperationRequestVar of type ControlloAccessoOperationRequest
<assign> <copy> <from variable="LoginOperationRequestVar" part="inRequest" /> <to variable="ControlloAccessoOperationRequestVar" part="part1" query="/part1/nome" /> </copy> </assign>
-
2. Re: How to do XPath query in BPEL?
zazzaz Oct 25, 2007 4:15 AM (in response to zazzaz)Previous answer is incomplete.
It looks like BPEL message and variable manipulation is implemented in not a namespace-controlled way.
Then, the previous query is correct but namespace will be missing or mixing up.
So you have to add the namespace in the query or the namespace will disappear
In previous code, if the element "part1" in defined in a schema referenced in BPEL headers like xmlns:sch=....
a correct query looks like<assign> <copy> <from variable="LoginOperationRequestVar" part="inRequest" /> <to variable="ControlloAccessoOperationRequestVar" part="part1" query="/part1/sch:nome" /> </copy> </assign>
-
3. Re: How to do XPath query in BPEL?
cocogg Oct 25, 2007 5:23 AM (in response to zazzaz)Try
<assign> <copy> <from variable="LoginOperationRequestVar" part="inRequest" /> <to>$ControlloAccessoOperationRequestVar.part1/sch:nome</to> </copy> </assign>