Below are examples of a sample Assess Request for the Rulebase SimpleBenefits for both the generic and specific services.The SimpleBenefits reulebase can be found in C:\Program Files\Oracle\Policy Modeling\examples\SimpleBenefits\SimpleBenefits.zip.
The Assess request needs to be wrapped in a Standard SOAP Envelope, which contains a header, and a body. Lines 1-5 are the starting of the SOAP request. The body and envelope are closed on lines 34-35
When the soap element is begun the namespace for the elements used in all the Determinations Server requests is imported through the declaration “xmlns:typ=”http://oracle.com/determinations/server/10.2/rulebase/assess/types””.
Lines 6-33 are the assess request and are all from the Determinations Server namespace. The assess request is doing the following:
The specific assess request for the same rulebase needs the same Standard soap wrapper as the generic request above (lines 1-5, 30-31)
The namespace declaration on line 3 is for the specific service and named for (and specific to) the SimpleBenefits rulebase: “xmlns:typ=”http://oracle.com/determinations/server/10.2/SimpleBenefits/assess/types””.
Lines 6-29 are the specific assess request and are all from the simplebenefits namespace. The assess request is setting and request exactly the same data as the generic assess request.