I just tried this to see if there was something the Broker may do to it that causes a loss of structure, but it worked just fine. Here’s what I did:
- Created a publishable document containing an object.
- Created a flow service that mapped a documentList to the object in the publishable document and then published the document to the Broker.
- Created a handling service that mapped the object from the document to a documentList, looped through the list, and wrote results to the server log.
- Created a trigger subscribing to the document, and calling the handling service.
- Finally… ran the mapping/publishing service and watched as the handling service received the object and mapped it to a docList with no problems.
So this should work.
The only way I could get it to fail was to map the object to a documentList of a slightly different structure that the original docList.
Are both docList structures (on the publish side and the subscribe side) exactly the same?
#webMethods#Flow-and-Java-services#Integration-Server-and-ESB