Creating Context Parameters
You can create context parameters in the Properties view. As part of parameter creation, you specify the WSDL operation.
Procedure
- Click a service or reference.
- In the Properties view, expand the Context Parameters node.
-
Click the plus icon ().
A parameter named contextParametern is added to the Context Parameters table. By default the parameter is available to the Input direction of all the operations available in the port type and the parameter type is set to basic with definition string. A error badge is added to components wired to service or reference.
- Click the Name column and type a name for the parameter.
-
To change the selected operations, click the
Operations column and click
.
The WSDL Operations dialog displays.
- Uncheck the checkboxes next to the operations to which the parameter will not apply and click OK.
-
To change the message direction to which the parameter applies,
click the
Direction column and click
.
The Select Direction dialog displays.
- Choose Input, Output, or Fault. If the message type is Fault, choose the fault messages to which the parameter applies. Click OK.
- Click the Type column, click the , and choose the type of the parameter.
- Click the Definition column and choose the parameter definition:
-
Click
Save.
An error badge is added to the service or reference.
-
Right-click the service or reference and select
Quick Fixes > Update Context Mapping Parameters.
The parameter is added to the Context Parameter Mapping table of the service's or reference's bindings.
-
If the service or reference is wired to a component, update the
component implementation by right-clicking the component and selecting
Quick Fixes > Update Implementation Class.
The implementation will be updated to enable access to the context parameter.
Copyright © 2022. Cloud Software Group, Inc. All Rights Reserved.