You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by Alex Boisvert <bo...@intalio.com> on 2006/11/21 17:11:18 UTC
Re: Assign Failure < I guess initialize variable >
You are very close... I think you're only missing the initialization of the
target structure in order to copy into it.
Try adding a <literal> assignment to initialize the variable, e.g.,
<assign>
<copy>
<literal>
<ns1:parameters> <!-- i'm guessing this is the top-most element
of the parameters part -->
<ns1:temp/> <!-- empty element for the copy target
selection -->
</ns1:parameters>
</literal>
</copy>
</assign>
Try it and see if it works for you.
alex
On 11/20/06, 김 학중 <si...@hotmail.com> wrote:
>
>
> Hi all.
>
> I've been tested my bpel process within the servicemix.
>
> I've intended to receive the data from client and copied the value of some
> element
>
> to the value of request message for invoking external Webservice.
>
> when I copy the value from receive data to invoke variable ,
> if I use following syntax it works fine
>
> <assign name="assign1">
> <copy>
> <from variable="inVar" part="parameters"/>
> <to variable="soapVar" part="parameters"/>
> </copy>
> </assign>
>
> but if I use following syntax it doesn't work
>
> <assign name="assign1">
> <from>$inVar.parameters/gis:input</from> < !-- we pick this value
> well -->
> <to>$soapVar.parameters/ns1:temp</to> < !-- we fail at this moment
> in engine -->
> </assing>
>
> so I've done log trace, and then I got the conclusion .
>
> we've got sellection failure error because of there is no temp element .
>
> Though the message has one temp element
>
> could you give me any clue about this symtom?
>
> _________________________________________________________________
> 보다 빠른 소식, 보다 빠른 정보, MSN 뉴스에서 확인하세요.
> http://news.msn.co.kr/
>
>
Re: Assign Failure < I guess initialize variable >
Posted by Alex Boisvert <bo...@intalio.com>.
Yes, definitely, sorry I was a little too expedient! Your answer provided
the right syntax.
alex
On 11/21/06, Matthias von Arx <ma...@siemens.com> wrote:
>
>
> Hi Alex,
>
> Aren't the <from> and <to> tags not required?
>
> Regards, Matthias
>
>
>
>
> Alex Boisvert wrote:
> >
> > You are very close... I think you're only missing the initialization of
> > the
> > target structure in order to copy into it.
> >
> > Try adding a <literal> assignment to initialize the variable, e.g.,
> >
> > <assign>
> > <copy>
> > <literal>
> > <ns1:parameters> <!-- i'm guessing this is the top-most
> > element
> > of the parameters part -->
> > <ns1:temp/> <!-- empty element for the copy target
> > selection -->
> > </ns1:parameters>
> > </literal>
> > </copy>
> > </assign>
> >
> > Try it and see if it works for you.
> >
> > alex
> >
> >
> > On 11/20/06, 김 학중 <si...@hotmail.com> wrote:
> >>
> >>
> >> Hi all.
> >>
> >> I've been tested my bpel process within the servicemix.
> >>
> >> I've intended to receive the data from client and copied the value of
> >> some
> >> element
> >>
> >> to the value of request message for invoking external Webservice.
> >>
> >> when I copy the value from receive data to invoke variable ,
> >> if I use following syntax it works fine
> >>
> >> <assign name="assign1">
> >> <copy>
> >> <from variable="inVar" part="parameters"/>
> >> <to variable="soapVar" part="parameters"/>
> >> </copy>
> >> </assign>
> >>
> >> but if I use following syntax it doesn't work
> >>
> >> <assign name="assign1">
> >> <from>$inVar.parameters/gis:input</from> < !-- we pick this value
> >> well -->
> >> <to>$soapVar.parameters/ns1:temp</to> < !-- we fail at this
> >> moment
> >> in engine -->
> >> </assing>
> >>
> >> so I've done log trace, and then I got the conclusion .
> >>
> >> we've got sellection failure error because of there is no temp element
> .
> >>
> >> Though the message has one temp element
> >>
> >> could you give me any clue about this symtom?
> >>
> >> _________________________________________________________________
> >> 보다 빠른 소식, 보다 빠른 정보, MSN 뉴스에서 확인하세요.
> >> http://news.msn.co.kr/
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Assign-Failure-%3C-I-guess-initialize-variable-%3E-tf2679461.html#a7474215
> Sent from the Apache Ode User mailing list archive at Nabble.com.
>
>
Re: Assign Failure < I guess initialize variable >
Posted by Matthias von Arx <ma...@siemens.com>.
Hi Alex,
Aren't the <from> and <to> tags not required?
Regards, Matthias
Alex Boisvert wrote:
>
> You are very close... I think you're only missing the initialization of
> the
> target structure in order to copy into it.
>
> Try adding a <literal> assignment to initialize the variable, e.g.,
>
> <assign>
> <copy>
> <literal>
> <ns1:parameters> <!-- i'm guessing this is the top-most
> element
> of the parameters part -->
> <ns1:temp/> <!-- empty element for the copy target
> selection -->
> </ns1:parameters>
> </literal>
> </copy>
> </assign>
>
> Try it and see if it works for you.
>
> alex
>
>
> On 11/20/06, 김 학중 <si...@hotmail.com> wrote:
>>
>>
>> Hi all.
>>
>> I've been tested my bpel process within the servicemix.
>>
>> I've intended to receive the data from client and copied the value of
>> some
>> element
>>
>> to the value of request message for invoking external Webservice.
>>
>> when I copy the value from receive data to invoke variable ,
>> if I use following syntax it works fine
>>
>> <assign name="assign1">
>> <copy>
>> <from variable="inVar" part="parameters"/>
>> <to variable="soapVar" part="parameters"/>
>> </copy>
>> </assign>
>>
>> but if I use following syntax it doesn't work
>>
>> <assign name="assign1">
>> <from>$inVar.parameters/gis:input</from> < !-- we pick this value
>> well -->
>> <to>$soapVar.parameters/ns1:temp</to> < !-- we fail at this
>> moment
>> in engine -->
>> </assing>
>>
>> so I've done log trace, and then I got the conclusion .
>>
>> we've got sellection failure error because of there is no temp element .
>>
>> Though the message has one temp element
>>
>> could you give me any clue about this symtom?
>>
>> _________________________________________________________________
>> 보다 빠른 소식, 보다 빠른 정보, MSN 뉴스에서 확인하세요.
>> http://news.msn.co.kr/
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Assign-Failure-%3C-I-guess-initialize-variable-%3E-tf2679461.html#a7474215
Sent from the Apache Ode User mailing list archive at Nabble.com.