How to create loop within loop within loop to read document and grab a key to get the value using Webmethods

For those coming upon this thread later, do not follow the Java code shown. Using Java is not necessary for this.

There are a couple of techniques to use in FLOW to easily get the value of any header. Here is a simple example.

Call getTransportInfo as the OP ntoed.

The trick is to manually add the named var you want to the untyped document in the pipeline. Right-click on the doc and insert a string var named Authorization.

Then create another var in the pipeline and map from the source field to the target field.

image

Now you can do whatever you want with the value in authorizationToken. And requestHdrs can be dropped.

HTH.

Sufran – you need to resist almost 100% of the temptations to drop to Java. Most everything can be done in FLOW. There are certainly times when Java is needed/useful but you should endeavor to have that be a rare occurrence. This old, old post may have useful guidance/info. Integration Server and Java - #22 by reamon

1 Like