Hello. I may be missing something really easy but I am having trouble with a custom java service I am writing.
I want to write a custom Java service that retrieves a number of items off the pipe line and returns a string list.
So far I have this working fine if the values on the pipeline are not in a document.
Basically my service does the following:
Inputs: Pipeline variable name,
size of output list
Pipeline has something like this on it.
<document>MainframeIDs
<docitems>MainframeID1
<docitems>MainframeID2
<docitems>MainframeID3
Notice the document contains enumerated string elements with basically the same name.
I would pass into my service the following key value
“MainframeIDs/MainframeID”.
I would then run a loop for the number of items in that document along the line of the following using the getString function.
IDataUtil.getString(cursor, “MainframeIDs/MainframeID”+ i)
The getString function does not work. The value is always null.
How do I access items inside of a document that is on the pipeline?
Any help would be greatly appreciated.
#webMethods#Integration-Server-and-ESB#Flow-and-Java-services