Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Deploying and Testing the Service

1. Deploy the rule service through the BRS management console. You can follow either of the two methods:

  • Bundle all artifacts in an .aar file and upload it (Rule Service -> Upload menu).
  • Create using the Rule Service wizard UI (Rule Service -> Create menu).

The above steps are discussed in detail in Exposing Rules as Services.

2. After deployment, the service will appear in the "Deployed Services" window of the BRS management console. Access the service's dashboard by clicking on it.

3. In the "Client Operations" widget of the dashboard, invoke the Try-it toolTesting WSDLs (Try-it Tool) to test the service.

4. In the service's TryIt Try-it window, issue a request similar to the following.

 

Code Block
languagehtml/xml
<medication>Cefuroxime</medication>
<age>54</age>
<creatinineLevel>1.2</creatinineLevel>

Similarly, send another request:

 

Code Block
languagehtml/xml
<medication>Amoxicillin</medication> 
<age>20</age>

 

5. Alternatively, you can use code generation link in the  "the  Client Operations" widget of the dashboard to invoke the service. A client using generated stub codes is shown below where the codes were generated with option "Unpacks the databinding classes".

...