Greetings,
My company started using webMethods (7.1.2) and I have quite a confusion with the loop statements. I’m trying to create a service that creates a list from a book catalog.
I have and XSD schema included in my package as a Document Reference; with the following xml structure:[INDENT]Request[/INDENT]
Books
Book → Array.
[INDENT=4]@id
Author
Title
Genre
Price
Pub_Date
Review[/INDENT]
What I’m trying to do is quite simple. I’m trying to iterate through on each book with a look statement like:
LOOP over ‘/Request/books/book’
And here I want to append each author to a StringList like:Ű
pub.list:appendToStringList
MAPPING:
[INDENT=2]Request/books/book/author → fromItem
Result (added as output to the flow service with stringList type) → toList
appendToStringList service out toList → Result.[/INDENT]
What happens is, when I execute my service I have only the first author is filled and every other is null.
Any help would be great.
Thank you in advance.
Regards,
Joe