private static String getOperationSignature(BindingOperation bindingOp) {
    Operation op = bindingOp.getOperation().get();

    if (op == null) {
      String msg =
          NbBundle.getMessage(
              NewTestcaseOperationVisualPanel.class,
              "MSG_MISSING_OPERATION_FOR_BINDING_OPERATION",
              bindingOp.getName());
      throw new RuntimeException(msg);
    }
    Input input = op.getInput();
    Output output = op.getOutput();
    StringBuffer sb = new StringBuffer();
    sb.append(op.getName() + "("); // NOI18N
    if (input != null) {
      sb.append(input.getMessage().getQName().getLocalPart());
    }
    sb.append("): "); // NOI18N
    if (output != null) {
      sb.append(output.getMessage().getQName().getLocalPart());
    } else {
      sb.append("void"); // NOI18N
    }
    return sb.toString();
  }
예제 #2
0
 public Variable getDefaultOutputVariable() {
   Reference<org.netbeans.modules.xml.wsdl.model.Operation> opRef = getOperation();
   org.netbeans.modules.xml.wsdl.model.Operation op = opRef == null ? null : opRef.get();
   return op == null ? null : getDefaultVariable(op.getOutput());
 }