Hi Ray:
Thanks very much for taking the time to answer. I’ve injected comments into your reply.
“A Document is an object that you create one time in the developer. It can be in your package, or you can create it in the pipeline for use at runtime.”
Thank you, this part is clear.
“A document reference will reference the document that you create in your package.”
I’d defy anyone to explain “Document Reference” without using the word ‘reference’.
Again, there’s nothing new here, IMO. Perhaps I’m overcomplicating it.
If I’m setting up a new service, and it comes time to define input and output, I can choose either Document or Document Reference.
“So, if you utilize the canonical approach to data management within your integrations, then you will establish, for example, one document that represents a purchase order in your system, and from that point forward, you will “Reference” the purchase order canonical.”
So you’re saying ‘Define the Document in your package, then refer to it in your service’s input/output.’ There’s no situation in which I’d choose Document for my input or output, always a Document Reference. Correct?
“One thing to note: you will not be able to change the referenced document in your flows. For example, if you misspell a data element, you will need to go back to the original document, correct the mistake, and then go to each document in every flow to make sure that fix worked, unless you are using symbolic mapping.”
Good to know. That’s been my experience: changing the input or output means starting all over again with a service.
“Also, since it is xml-based, case is very important. PurchasePrice is not purchasePrice and symbolic mapping will not link up the data.”
This I’m used to - Java and XML have beaten it into my head.
Thanks again, Ray. Sincerely, MOD
#webMethods#Flow-and-Java-services#Integration-Server-and-ESB