Skip to Content
Author's profile photo BV PILLAI

Generate and Test your SAP Netweaver BRM Rules Web Service – Part 1

In this blog, I will be describing about how to generate and test your SAP Netweaver BRM Rules web services, which are generated using the Web Service Generation Tool.

 

In general, you can create the business rules using either XML schema or Java class in SAP Netweaver BRMS, the business rules created with XML schema can be exposed as web service and consumed from any client application. In this blog, I will discuss about generating the web service for credit card eligibility business rule using the Web Service Generation Tool and testing the same using the WS Navigator of CE 7.1.1 system.

 

The WS Navigator UI in CE 7.1.1 has enhanced with lots of new features for performing the service test and creating the test scenarios.

 

As a first step, I will be generating the web service (.EAR file) for my credit card rules using the Web Service Generation Tool. Refer the ‘ReadMeFirst.pdf’ from the Web Service Generation Tool download (ZIP file) to know more about the usage of the tool.

 

 

Here is a sample credit card type decision table defined for the Ruleset ‘Creditcard_Approval_Rules’ in the Rule composer of SAP NetWeaver Developer Studio 7.1 EhP1.

 

 

After the successful deployment of the web service (.EAR file) into your CE 7.1.1 system. Login to your NWA and navigate to SOA Management -> Application and Scenario Communication->Single Service Administration.

Find for the Service ‘CreditCardApprovalRules’ as shown below:

 

Navigate to the ‘WSDL’ tab in the details screen:

 

 

Click on the ‘Test’ to launch the WS Navigator for testing the Credit Card Rule Service

 

 

Click on ‘Next’ to find the operations available for the service

 

 

Click on ‘Next’ to enter the input parameters for the operation

 

 

Click on ‘Next’ to execute the service. Upon the execution, system will invoke the rule processor to evaluate the conditions and return back the result from the rule set (Eligibility)

 

 

In my next blog (Consuming SAP Netweaver BRM Rules Web Service in ABAP – Part 2), I will explain about how to consume these credit card rule web service from the ABAP client.

Assigned Tags

      4 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member
      Hi Velu,

      When we created the Rules Tutorial Center, we started off with a belief that having lots of content will help people getitng started.

      Your testing and trying this out confirms our belief.

      Keep up the good work

      Thx
      Rajgo

      Author's profile photo Former Member
      Former Member
      Hi Velu,

      We are trying to gauge and determine if it will help to kick start a forum for Business Rules in SDN for sharing content and knowledge and discussing this technology.

      Let me know if you think this will be useful?

      Thx
      Rajgo

      Author's profile photo BV PILLAI
      BV PILLAI
      Blog Post Author
      Hi Rajgo,

      Definitely it will help among the developers to share the knowledge and discuss the issues in the forum.

      Regards,
      Velu

      Author's profile photo Dipankar Saha
      Dipankar Saha
      Excellent work Velu as usual!
      I was searching for this utility only to expose the rules as web services. Thanks for your blog!

      -Dipankar