Changing target namespaces

You can change the namespace of transparent 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 transparent decision services. Such is the case, for example, when more than one transparent decision service are added to a business integration project in IBM® Integration Designer. To avoid such conflicts, the URI for transparent 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. Open Hosted Transparent Decision Services (HTDS) Options.
  4. Change the target namespace of a SOAP (WSDL format) transparent decision service:
    Restriction: The following steps are applicable only for WSDL code generation.
    1. Next to the Target namespace (SOAP only) URI, click Edit.
    2. Type the custom URL in the field.
    3. Click Save. You can cancel by clicking Cancel instead of Save.
    Tip: When you generate the WADL code for a ruleset, you can change the target namespace for ruleset parameters. See Step 5.
  5. Optional: For either a SOAP (WSDL format) or a REST (WADL format) transparent decision service, if applicable, edit the URL for the ruleset parameters.
    1. Click Parameter target namespace.
    2. Type the custom URL in the field.
    3. Click Save. You can cancel by clicking Cancel instead of Save.