Looping through multiple nodes in Ochestration
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Orchestration > Looping through multiple nodes in Ochestration




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Looping through multiple nodes in Ochestration  
Ouaes Jamali


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-08-04 01:42 PM

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.





[ Post a follow-up to this message ]



    Re: Looping through multiple nodes in Ochestration  
Jan Eliasen


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-08-04 01:42 PM

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





[ Post a follow-up to this message ]



    Re: Looping through multiple nodes in Ochestration  
Ouaes Jamali


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-08-04 01:42 PM

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?
> 





[ Post a follow-up to this message ]



    Re: Looping through multiple nodes in Ochestration  
Sameer.Surve@ilg.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-08-04 01:42 PM

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@pos
ting.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:<qsh400ptf72bh3sppeg1h
059p311kdjaol@4ax.com>... 





[ Post a follow-up to this message ]



    Re: Looping through multiple nodes in Ochestration  
Ouaes Jamali


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-08-04 01:42 PM

I am using BizTalk Server 2002
Sameer.Surve@ilg.com (Sameer.Surve@ilg.com) wrote in message news:<cc697edb.0401270616.5
d75a02d@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.040126160
9.149eb239@posting.google.com>... 





[ Post a follow-up to this message ]



    Re: Looping through multiple nodes in Ochestration  
Ruurd


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-25-04 02:44 PM

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>... 
news:<qsh400ptf72bh3sppeg1h059p311kdjaol@4ax.com>... 







[ Post a follow-up to this message ]



    Re: Looping through multiple nodes in Ochestration  
Narasimhan Padmanabhan


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-14-04 07: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.
| >>
| >>
| >>






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:59 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register