On 8/17/07, Prasanna Rajaperumal <[EMAIL PROTECTED]> wrote:
>
> I know I am doing something wrong in the basics. Can you please hint me at
> it.
>
> <assign name="Assign1">
> <copy>
> <from>
> <literal>done</literal>
> </from>
> <to>$PhoneBookBPELOperationOut1.part1/newElement</to>
> </copy>
> </assign>
>
> I am getting this error.
>
> 21:46:00,265 DEBUG [ODEService] Fault response message:
> {http://schemas.xmlsoap.org/ws/2004/03/business-process/}selectionFailure
> ERROR - GeronimoLog.error(108) | Error processing response for MEX
> {MyRoleMex#hqejbhcnphr2ikl18e88n0 [Client hqejbhcnphr2ikl18e88m
> x] calling {
> http://soamatrix.com/bpel/PhoneBookBPEL}PhoneBookBPELService.PhoneBookBPELO
> peration(...)} org.apache.axis2.AxisFault:
> {http://schemas.xmlsoap.org/ws/2004/03/business-process/}selectionFailureNo
> results for expression: { OXPath10Expression
> $PhoneBookBPELOperationOut1.part1/newElement}
To assign data into "newElement", you must first create it, like this:
<assign name="Assign1">
<copy>
<from>
<literal><newElement/></literal>
</from>
<to>$PhoneBookBPELOperationOut1.part1</to>
</copy>
</assign>
or combine both assignments in a single <copy>:
<assign name="Assign1">
<copy>
<from>
<literal>
<newElement>done</newElement>
</literal>
</from>
<to>$PhoneBookBPELOperationOut1.part1</to>
</copy>
</assign>
cheers,
alex