Hi Rosalin, Ok, finally got time to try your process today and found that your expression is invalid,
$output.payload/tns:user[$counter] should be instead, $output.payload/tns:user[position() = $counter] The predicate expression threw me off -- I got confused with the Java array notation and... maybe you did too? alex On Thu, Jul 17, 2008 at 10:23 PM, Rosalin Pattnaik < [EMAIL PROTECTED]> wrote: > Hi Alex, > > > PFA a BPEL project that tries to simulate the problem i am facing. > > I get error while assigning something to > $output.payload/tns:user[$counter] (line No. 49 of Sample .bpel ). > > The expected output is > <SampleResponse xmlns="*http://www.soa-matrix.com/sample*" xmlns:ns6="* > http://www.soa-matrix.com/sample*"> > <ns6:user>User 1</ns6:user> > <ns6:user>User 2</ns6:user> > <ns6:user>User 3</ns6:user> > </SampleResponse> > > But in the above scenario i get the following exception : > <faultstring>{ > http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure<http://docs.oasis-open.org/wsbpel/2.0/process/executable%7DselectionFailure>Multiple > results for expression: {OXPath10Expression > $output.payload/tns:user[$counter]}</faultstring> > > > Thanks, > Rosalin > > > > On Thu, Jul 17, 2008 at 10:12 PM, Alex Boisvert <[EMAIL PROTECTED]> > wrote: > >> HI Rosalin, >> >> To determine if this is a bug or an issue with your BPEL process, we'll >> need >> some actual code to review and reproduce. >> >> Can you simplify your process down to a simple test-case that would >> illustrate your issue? >> >> alex >> >> >> On Thu, Jul 17, 2008 at 5:41 AM, Rosalin Pattnaik < >> [EMAIL PROTECTED]> wrote: >> >> > Hi, >> > >> > >> > I tried to assign >> > >> > concat(" Name: >> > ",$outGetEntityDetails.parameters/tns:[EMAIL PROTECTED]'Name']/text()) >> > >> > to >> > >> > $output.payload/tns:validator[$counter] >> > >> > This gives me the following exception >> <faultcode>soapenv:selectionFailure</ >> > faultcode> >> > <faultstring>{ >> > >> http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure<http://docs.oasis-open.org/wsbpel/2.0/process/executable%7DselectionFailure> >> < >> http://docs.oasis-open.org/wsbpel/2.0/process/executable%7DselectionFailure >> > >> > < >> > >> http://docs.oasis-open.org/wsbpel/2.0/process/executable%7DselectionFailure >> > >Multiple >> > results for expression: {OXPath10Expression >> > $output.payload/tns:validator[$counter]}</faultstring> >> > >> > >> > While i am able to assign to >> > >> > >> $output.payload/tns:validator[1]/$output.payload/tns:validator[2]/$output.payload/tns:validator[3].It >> > is so that an condition in an Xpath is not evaluated on RHS of an >> > assignment? >> > >> > How can i assign to each user element while the schema is something like >> > this.. >> > >> > <element name="sample"> >> > <complexType> >> > <sequence> >> > <element name="user" type="string" minOccurs="0" >> > maxOccurs="unbounded"/> >> > </sequence> >> > </complexType> >> > </element> >> > >> > >> > >> > Regards, >> > Rosalin >> > >> > >
