Example #1
0
 public void setWsaVersion(String wsAddressing) {
   if (wsAddressing.equals(WsaVersionTypeConfig.X_200508.toString()))
     getConfig().setWsaVersion(WsaVersionTypeConfig.X_200508);
   else if (wsAddressing.equals(WsaVersionTypeConfig.X_200408.toString()))
     getConfig().setWsaVersion(WsaVersionTypeConfig.X_200408);
   else getConfig().setWsaVersion(WsaVersionTypeConfig.NONE);
 }
Example #2
0
  public String getWsaVersion() {
    if (getConfig().getWsaVersion().equals(WsaVersionTypeConfig.X_200408)) {
      return WsaVersionTypeConfig.X_200408.toString();
    } else if (getConfig().getWsaVersion().equals(WsaVersionTypeConfig.X_200508)) {
      return WsaVersionTypeConfig.X_200508.toString();
    }

    return WsaVersionTypeConfig.NONE.toString();
  }
  public void buildContent(SimpleBindingForm form) {
    form.addSpace(5);
    form.appendCheckBox("wsaEnabled", "Enable WS-A addressing", "Enable/Disable WS-A addressing");
    form.addSpace(5);
    // add mustUnderstand drop down list
    form.appendComboBox(
        "mustUnderstand",
        "Must understand",
        new String[] {
          MustUnderstandTypeConfig.NONE.toString(),
          MustUnderstandTypeConfig.TRUE.toString(),
          MustUnderstandTypeConfig.FALSE.toString()
        },
        "The  property for controlling use of the mustUnderstand attribute");

    form.appendComboBox(
        "version",
        "WS-A Version",
        new String[] {
          WsaVersionTypeConfig.X_200508.toString(), WsaVersionTypeConfig.X_200408.toString()
        },
        "The  property for managing WS-A version");

    addDefaultActionCheckBox =
        form.appendCheckBox("addDefaultAction", "Add default wsa:Action", "Add default wsa:Action");
    actionTextField =
        form.appendTextField(
            "action",
            "Action",
            "The action related to a message, will be generated if left empty and ws-a settings 'use default action...' checked ");
    actionTextField.setEnabled(!addDefaultActionCheckBox.isSelected());
    addDefaultActionCheckBox.addItemListener(
        new ItemListener() {

          public void itemStateChanged(ItemEvent arg0) {
            actionTextField.setEnabled(!addDefaultActionCheckBox.isSelected());
          }
        });

    addDefaultToCheckBox =
        form.appendCheckBox("addDefaultTo", "Add default wsa:To", "Add default wsa:To");
    toTextField =
        form.appendTextField(
            "to", "To", "The destination endpoint reference, will be generated if left empty");
    toTextField.setEnabled(!addDefaultToCheckBox.isSelected());
    addDefaultToCheckBox.addItemListener(
        new ItemListener() {

          public void itemStateChanged(ItemEvent arg0) {
            toTextField.setEnabled(!addDefaultToCheckBox.isSelected());
          }
        });

    form.appendTextField(
        "replyTo", "Reply to", "The reply endpoint reference, will be generated if left empty");
    form.appendTextArea(
        "replyToRefParams",
        "ReplyTo Reference Parameters",
        "ReplyTo Reference Parameters, content will be inserted as an xml (not text)");
    generateMessageIdCheckBox =
        form.appendCheckBox(
            "generateMessageId", "Generate MessageID", "Randomly generate MessageId");
    messageIdTextField =
        form.appendTextField(
            "messageID",
            "MessageID",
            " The ID of a message that can be used to uniquely identify a message, will be generated if left empty and ws-a settings 'generate message id' checked ");
    messageIdTextField.setEnabled(!generateMessageIdCheckBox.isSelected());
    generateMessageIdCheckBox.addItemListener(
        new ItemListener() {

          public void itemStateChanged(ItemEvent arg0) {
            messageIdTextField.setEnabled(!generateMessageIdCheckBox.isSelected());
          }
        });
    form.addSpace(10);
    form.appendTextField("from", "From", "The source endpoint reference");
    form.appendTextField("faultTo", "Fault to", "The fault endpoint reference");
    form.appendTextArea(
        "faultToRefParams",
        "FaultTo Reference Parameters",
        "FaultTo Reference Parameters, content will be inserted as an xml (not text)");
    form.appendTextField("relatesTo", "Relates to", "The endpoint reference request relates to");
    form.appendTextField("relationshipType", "Relationship type", "Relationship type");
    form.addSpace(5);
  }