Thursday, October 4, 2012

OSB. version info embedded in a project, and how to query it dynamically

in a project httptest, create a XML Schema "version", whose content is minimal:

<xs:schema><xs:element name="version" id="v1.02"/></xs:schema>

you can retrieve the content of the document with a HTTP GET:

http://hostname:8101/sbresource?SCHEMA/httptest/version

See also http://docs.oracle.com/cd/E23943_01/admin.1111/e15867/project_explorer.htm


In alternative, you can embed the info in a comment:
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema">
<!--version=v1.21 -->
<!--timestamp=20130204154312 -->
<!--deployer=topolino -->
</schema>





No comments: