Changing target namespaces

When you generate the WSDL of a SOAP hosted transparent decision service (HTDS) or the WADL of a REST transparent decision service, you can change the namespace of the transparent decision service 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. In the Rule Execution Server console, click the Explorer tab, expand the RuleApp that you want, and select a ruleset to open the ruleset view.
  2. Expand Hosted Transparent Decision Services (HTDS) Options.
  3. To change the target namespace of a SOAP transparent decision service, proceed as follows:
    1. Click Edit.
    2. Enter the custom URL in the Target namespace (SOAP only) field.
    3. Click Save. To undo your changes, click Cancelinstead of Save.
  4. Optional: For either a SOAP or a REST transparent decision service, if applicable, edit the URL for the ruleset parameters as follows:
    1. Click EditU.
    2. Enter the Parameter target namespace URL.
    3. Click Save. To undo your changes, click Cancel instead of Save.