Here is how to do it. This will load body.xml file from governance registry, and store in 'xmlfile' property.
Having 'registry' scope is the key here. Type is "OM" because it is an xml file.
Related:
How to read a file from registry
Showing posts sorted by relevance for query registry. Sort by date Show all posts
Showing posts sorted by relevance for query registry. Sort by date Show all posts
Monday, August 24, 2015
Monday, September 21, 2015
[WSO2 ESB] How to read a value from xml file stored in a registry
You can do like this. Here we have below test.xml file stored in gov:/test.xml
Your synapse configuration should be like this. Here we use xapth to read the XML.
Your output log will look like this.
[2015-09-21 16:01:28,750] INFO - LogMediator Book_Name = A Song of Ice and Fire
Please comment below if you have any questions.
Related:
How to read a file from registry
How to read a registry property
Your synapse configuration should be like this. Here we use xapth to read the XML.
Your output log will look like this.
[2015-09-21 16:01:28,750] INFO - LogMediator Book_Name = A Song of Ice and Fire
Please comment below if you have any questions.
Related:
How to read a file from registry
How to read a registry property
Tuesday, September 1, 2015
[WSO2 ESB] How to read a registry property
Here is how to do it. This will load 'abc' property of collection "gov:/data/xml/collectionx", and store in 'regProperty' property.
Related:
How to read a file from registry
How to read a value from xml file stored in a registry
Related:
How to read a file from registry
How to read a value from xml file stored in a registry
Subscribe to:
Posts (Atom)