BizTalk Server Orchestration - Looping through multiple nodes in Ochestration

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > May 2004 > Looping through multiple nodes in Ochestration





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Looping through multiple nodes in Ochestration
Ouaes Jamali

2004-02-08, 8:42 am

Hi All

I have got an orders items file that contains data for
Order Items. In the ochestration i want to iterate
through each of the OrderItem nodes and take some action
based on the data in the node. When i send this file with
multiple nodes through Ochestration i get a error saying
that "Multiple nodes where returned".
Is there a way to iterate through indivual nodes with
out having to create a file for every order item and send
it through ochestration? I have tried to use the looping
control but am unable to find a sample that would guide
me on how to use this. Any help in getting a sample code
or any help on iterating through multiple nodes
Ochestration would be greatly appreciated.
This is the structure of the Order Items file

<OrderItems>
<OrderItem ItemID="2" Qty="100" ListPrice="100.22"
Discount=".5">
<OrderItem ItemID="3" Qty="10" ListPrice="15.00"
Discount="0">
</OrderItems>

Thanks in advance.
Jan Eliasen

2004-02-08, 8:42 am

On Fri, 9 Jan 2004 17:11:50 -0800, "Ouaes Jamali"
<ojamali@comsoltx.com> wrote:

It should be possible to create a COM-component that will count the
items for you and return the number? Or if you need the actual values,
then also a COM-component that returns the next set of values until
null or something like that?

>Hi All
>
>I have got an orders items file that contains data for
>Order Items. In the ochestration i want to iterate
>through each of the OrderItem nodes and take some action
>based on the data in the node. When i send this file with
>multiple nodes through Ochestration i get a error saying
>that "Multiple nodes where returned".
> Is there a way to iterate through indivual nodes with
>out having to create a file for every order item and send
>it through ochestration? I have tried to use the looping
>control but am unable to find a sample that would guide
>me on how to use this. Any help in getting a sample code
>or any help on iterating through multiple nodes
>Ochestration would be greatly appreciated.
> This is the structure of the Order Items file
>
><OrderItems>
> <OrderItem ItemID="2" Qty="100" ListPrice="100.22"
>Discount=".5">
> <OrderItem ItemID="3" Qty="10" ListPrice="15.00"
>Discount="0">
></OrderItems>
>
>Thanks in advance.


--
Jan Eliasen, representing himself and not the company he works for.
MCP in Microsoft BizTalk
Ouaes Jamali

2004-02-08, 8:42 am

Thanx, I have got this one done. I created the COM component that
returns the nodes count another method that takes in the XML data and
the node index and returns the node and the third method(i implemented
this as a property) increments the node index counter.


Jan Eliasen <spam@eliasen.dk> wrote in message news:<qsh400ptf72bh3sppeg1h059p311kdjaol@4ax.com>...[color=blue]
> On Fri, 9 Jan 2004 17:11:50 -0800, "Ouaes Jamali"
> <ojamali@comsoltx.com> wrote:
>
> It should be possible to create a COM-component that will count the
> items for you and return the number? Or if you need the actual values,
> then also a COM-component that returns the next set of values until
> null or something like that?
>
Sameer.Surve@ilg.com

2004-02-08, 8:42 am

From the text, it is not apparent if you are using BizTalk 2002 or
2004.
You should be able to do what you want using 2004.
But this is a limitation for BizTalk 2002.
The only way I know of is to workaround the problem that Jan suggested
(which seems to work for you).

ouaes@hotmail.com (Ouaes Jamali) wrote in message news:<e24f6f80.0401261609.149eb239@posting.google.com>...[color=blue]
> Thanx, I have got this one done. I created the COM component that
> returns the nodes count another method that takes in the XML data and
> the node index and returns the node and the third method(i implemented
> this as a property) increments the node index counter.
>
>
> Jan Eliasen <spam@eliasen.dk> wrote in message news:<qsh400ptf72bh3sppeg1h059p311kdjaol@4ax.com>...
Ouaes Jamali

2004-02-08, 8:42 am

I am using BizTalk Server 2002
Sameer.Surve@ilg.com (Sameer.Surve@ilg.com) wrote in message news:<cc697edb.0401270616.5d75a02d@posting.google.com>...[color=blue]
> From the text, it is not apparent if you are using BizTalk 2002 or
> 2004.
> You should be able to do what you want using 2004.
> But this is a limitation for BizTalk 2002.
> The only way I know of is to workaround the problem that Jan suggested
> (which seems to work for you).
>
> ouaes@hotmail.com (Ouaes Jamali) wrote in message news:<e24f6f80.0401261609.149eb239@posting.google.com>...
Ruurd

2004-02-25, 9:44 am

I am using biztalk 2004 though, and would love an answer to the same
question!



<Sameer.Surve@ilg.com> wrote in message
news:cc697edb.0401270616.5d75a02d@posting.google.com...
> From the text, it is not apparent if you are using BizTalk 2002 or
> 2004.
> You should be able to do what you want using 2004.
> But this is a limitation for BizTalk 2002.
> The only way I know of is to workaround the problem that Jan suggested
> (which seems to work for you).
>
> ouaes@hotmail.com (Ouaes Jamali) wrote in message

news:<e24f6f80.0401261609.149eb239@posting.google.com>...[color=darkred]
news:<qsh400ptf72bh3sppeg1h059p311kdjaol@4ax.com>...[color=darkred]


Narasimhan Padmanabhan

2004-05-14, 2:37 pm

Please look at the xpath() function in the documentation.
This posting is provided "AS IS" with no warranties, and confers no rights.

EBusiness Server Team
--------------------
| >>From: "Ruurd" <ruurd@ruurd.ask.me>
| >>References: <049701c3d716$b9b5af10$a301280a@phx.gbl>
<qsh400ptf72bh3sppeg1h059p311kdjaol@4ax.com>
<e24f6f80.0401261609.149eb239@posting.google.com>
<cc697edb.0401270616.5d75a02d@posting.google.com>
| >>Subject: Re: Looping through multiple nodes in Ochestration
| >>Date: Wed, 25 Feb 2004 14:24:28 +0100
| >>Lines: 59
| >>X-Priority: 3
| >>X-MSMail-Priority: Normal
| >>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| >>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| >>Message-ID: <u4pk0K6#DHA.3184@TK2MSFTNGP09.phx.gbl>
| >>Newsgroups: microsoft.public.biztalk.orchestration
| >>NNTP-Posting-Host: cust.13.91.adsl.cistron.nl 62.216.13.91
| >>Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
| >>Xref: cpmsftngxa06.phx.gbl microsoft.public.biztalk.orchestration:5079
| >>X-Tomcat-NG: microsoft.public.biztalk.orchestration
| >>
| >>I am using biztalk 2004 though, and would love an answer to the same
| >>question!
| >>
| >>
| >>
| >><Sameer.Surve@ilg.com> wrote in message
| >>news:cc697edb.0401270616.5d75a02d@posting.google.com...
| >>> From the text, it is not apparent if you are using BizTalk 2002 or
| >>> 2004.
| >>> You should be able to do what you want using 2004.
| >>> But this is a limitation for BizTalk 2002.
| >>> The only way I know of is to workaround the problem that Jan suggested
| >>> (which seems to work for you).
| >>>
| >>> ouaes@hotmail.com (Ouaes Jamali) wrote in message
| >>news:<e24f6f80.0401261609.149eb239@posting.google.com>...
| >>> > Thanx, I have got this one done. I created the COM component that
| >>> > returns the nodes count another method that takes in the XML data
and
| >>> > the node index and returns the node and the third method(i
implemented
| >>> > this as a property) increments the node index counter.
| >>> >
| >>> >
| >>> > Jan Eliasen <spam@eliasen.dk> wrote in message
| >>news:<qsh400ptf72bh3sppeg1h059p311kdjaol@4ax.com>...
| >>> > > On Fri, 9 Jan 2004 17:11:50 -0800, "Ouaes Jamali"
| >>> > > <ojamali@comsoltx.com> wrote:
| >>> > >
| >>> > > It should be possible to create a COM-component that will count
the
| >>> > > items for you and return the number? Or if you need the actual
values,
| >>> > > then also a COM-component that returns the next set of values
until
| >>> > > null or something like that?
| >>> > >
| >>> > > >Hi All
| >>> > > >
| >>> > > >I have got an orders items file that contains data for
| >>> > > >Order Items. In the ochestration i want to iterate
| >>> > > >through each of the OrderItem nodes and take some action
| >>> > > >based on the data in the node. When i send this file with
| >>> > > >multiple nodes through Ochestration i get a error saying
| >>> > > >that "Multiple nodes where returned".
| >>> > > > Is there a way to iterate through indivual nodes with
| >>> > > >out having to create a file for every order item and send
| >>> > > >it through ochestration? I have tried to use the looping
| >>> > > >control but am unable to find a sample that would guide
| >>> > > >me on how to use this. Any help in getting a sample code
| >>> > > >or any help on iterating through multiple nodes
| >>> > > >Ochestration would be greatly appreciated.
| >>> > > > This is the structure of the Order Items file
| >>> > > >
| >>> > > ><OrderItems>
| >>> > > > <OrderItem ItemID="2" Qty="100" ListPrice="100.22"
| >>> > > >Discount=".5">
| >>> > > > <OrderItem ItemID="3" Qty="10" ListPrice="15.00"
| >>> > > >Discount="0">
| >>> > > ></OrderItems>
| >>> > > >
| >>> > > >Thanks in advance.
| >>
| >>
| >>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com