Changing target namespaces

You can change the namespace of decision services to avoid naming conflicts when more than one description file is generated at the same location.

About this task

When more than one description file is generated at the same location, naming conflicts can arise because the parameters might not be the same for different decision services. Such is the case, for example, when more than one decision service are added to a business integration project in IBM® Integration Designer. To avoid such conflicts, the URI for decision service requests and responses, and their parameters, includes the ruleset name. The following example the URL for a ruleset named PreTradeChecks.
<wsdl:definitions name="PreTradeChecksDecisionService" 
targetNamespace="http://www.ibm.com/rules/decisionservice/Execution/PreTradeChecks"
...
The schema importation mechanism references schema components from other schema documents.
...
<xsd:import namespace="http://www.ibm.com/rules/decisionservice/Execution/PreTradeChecks/param"/
...
The names of decision requests and responses are prefixed with the RuleApp name. For example:
<xsd:element name="PreTradeChecksRequest
...
xsd:element name="PreTradeChecksResponse"

The value of the target namespace must be an absolute URI. To ensure the uniqueness of the target namespace, you can change the definition of this attribute in the Ruleset Parameters section of the Ruleset View.

Procedure

  1. Start your application server (or the sample server), open the Rule Execution Server console, and sign in to it.
  2. Click the Explorer tab, expand the RuleApp that you want, and select a ruleset to open the Ruleset View.
  3. At the bottom of the Ruleset View, click Show HTDS Options.
  4. To change the target name space of a SOAP decision service, proceed as follows:
    1. Next to the Decision service target name space (SOAP only) URI, click the Edit icon. Edit icon. In the option name, SOAP only means that changing the name space makes sense only for WSDL code generation. When you generate the WADL code for a ruleset, you can change the target name space for ruleset parameters.
    2. Type the custom URL in the field.
    3. Click the Save icon. Save icon.

    You can cancel by clicking the Undo arrow next to the Save icon.

  5. Optional: For either a SOAP or a REST decision service, if applicable, edit the URL for the ruleset parameters as follows:
    1. Click Decision service parameter target name space.
    2. Type the custom URL in the field.
    3. Click the Save icon. Save icon.

    You can cancel by clicking the Undo arrow next to the Save icon.