Example: Assess Request xml

Below are examples of an Assess Request for the rulebase SimpleBenefits for both the generic and specific services. The SimpleBenefits rulebase can be found in examples\rulebases\SimpleBenefits.zip.

Example Assess Request (generic)

The Assess Request needs to be wrapped in a standard SOAP Envelope, which contains a header, and a body. Lines 1-3 are the starting of the SOAP request. The body and envelope are closed on lines 28 and 29.

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.4/rulebase/assess/types"".

Lines 4-27 are the assess request and are all from the Determinations Server namespace. The assess request is doing the following:

Example Assess Request (specific)

The specific assess request for the same rulebase needs the same standard soap wrapper as the generic request above (lines 1-3, 28-29).

The namespace declaration on line 1 is for the specific service and named for (and specific to) the SimpleBenefits rulebase: "xmlns:typ="http://oracle.com/determinations/server/10.4/SimpleBenefits/assess/types"".

Lines 4-27 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.