Hi!!  Alex,

Can you please see this code and tell me the necessary change?

<copy>
                <from>
substring-before($AssetsOut.getResourceReturn,'#$#$#$#$')</from>
                <to variable="tmpVar"/>
</copy>
<copy>
                <from> substring-before(tmpVar,'####')</from>
                <to variable="ClientInput" part = "combinedStr"/>
</copy>

the ODE engine is accepting the process.
From the log, I am sure that $AssetsOut.getResourceReturn is returning as
abc####xyz#$#$#$#$zyxcba

but the message variable ClientInput with part "combinedStr" is not
containing any value. So, the further service call leads to
an ArrayIndexOutOfBoundException.

Can you please tell me the right format of the code to copy values?

I am running in a tough deadline.

Best Regards,
Sujoy






On 2/20/07, sujoy ray <[EMAIL PROTECTED]> wrote:

Thanks a lot Alex,

I gonna check it and let you know quickly. Do believe it gonna work :-)

Sujoy

 On 2/19/07, Alex Boisvert <[EMAIL PROTECTED]> wrote:
>
> On 2/19/07, sujoy ray <[EMAIL PROTECTED]> wrote:
> >
> > <copy>
> >          <from>$AssetsOut.getResourceReturn.BPLANS.BPlan</from>
> >           <to variable= "tmpVar"/>
> > </copy>
>
>
>
> Sounds like what you want is to do something like this:
>
> <copy>
>         <from>$AssetsOut.getResourceReturn/BPLANS/BPlan</from>
>          <to variable= "tmpVar"/>
> </copy>
>
> where:
> "AssetsOut" the name of your message variable
> "getResourceReturn" is the name of your message part
> "BPLANS" is a child element of the message part
> "BPlan" is a child element of BPLANS
>
> alex
>
>
>
> It is deployed but again the same. it dumps the whole
> > $AssetsOut.getResourceReturn into tmpVar.
> >
> > I want to copy particularly the subvalue/s inside that path. Can
> anybody
> > help me with the right expression. Is there any good tutorial on XML
> > manipulation over WS-BPEL 2.0 using XPath 2.0? Please let me know.
> >
> > Thanks in advance.
> >
> > Best Regards,
> >
> > Sujoy
> >
>


Reply via email to