Loop is not working for single document in documen list

Hi All,

I am facing following problem.

  1. I am getting an XML doc from browser and invoking xmlStringToNode service.
  2. I am converting same in Document with XMLNodeToDocument.
  3. My document strcuture is
    Document
    DocumentList
    Var1
    Var2
    Var3 etc etc
  4. After converting node into Dcoument i have loop on document/documentList and then mapping each with canonical after putting some business logic.

My problem is, when i get multiple records in DocumentList, it goes into loop but for single record, my loop does not work and it directly comes out of loop.
Does anyone know how to slove this problem?

regards,

Atul,

In the XMLNodeToDocument step either set the param the “documentTypeName”(enter fully qualified IS DocumentType)

or else

set makeArrays=true and specify the DocumentList tag Name in the “arrays” then you should see the output as document/documentList(for single record as well multiple records),and your loop will work now.

HTH,
RMG.

Thx a lot RMG,

I could solve my problem with your inputs.

regards,
Atul