Creating Context Parameters

You can create context parameters in the Properties view. As part of parameter creation, you specify the WSDL operation.

Procedure

  1. Click a service or reference.
  2. In the Properties view, expand the Context Parameters node.
  3. 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.
  4. Click the Name column and type a name for the parameter.
  5. To change the selected operations, click the Operations column and click .
    The WSDL Operations dialog displays.
  6. Uncheck the checkboxes next to the operations to which the parameter will not apply and click OK.
  7. To change the message direction to which the parameter applies, click the Direction column and click .
    The Select Direction dialog displays.
  8. Choose Input, Output, or Fault. If the message type is Fault, choose the fault messages to which the parameter applies. Click OK.
  9. Click the Type column, click the , and choose the type of the parameter.
  10. Click the Definition column and choose the parameter definition:
    • Basic - Click the and choose a definition.
    • Message - Click the . The Select Message and Message Part dialog displays. Choose the message and message part to which the parameter applies and click OK.
  11. Click Save.
    An error badge is added to the service or reference.
  12. 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.
  13. 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.