예제 #1
0
 /**
  * @param portType
  * @param operation
  * @param bindingOperation
  */
 private void buildAsync(
     PortType portType, Operation operation, BindingOperation bindingOperation) {
   String operationName = getCustomizedOperationName(operation); // operation.getName();
   if (operationName == null) return;
   Message outputMessage = null;
   if (operation.getOutput() != null)
     outputMessage = operation.getOutput().resolveMessage(wsdlDocument);
   if (outputMessage != null) {
     List<MessagePart> allParts = new ArrayList<MessagePart>(outputMessage.getParts());
     if (options != null && options.additionalHeaders) {
       List<MessagePart> addtionalHeaderParts =
           wsdlModeler.getAdditionHeaderParts(bindingOperation, outputMessage, false);
       allParts.addAll(addtionalHeaderParts);
     }
     if (allParts.size() > 1) build(getOperationName(operationName), allParts);
   }
 }
예제 #2
0
  private String getCustomizedOperationName(Operation operation) {
    JAXWSBinding jaxwsCustomization =
        (JAXWSBinding) getExtensionOfType(operation, JAXWSBinding.class);
    String operationName =
        (jaxwsCustomization != null)
            ? ((jaxwsCustomization.getMethodName() != null)
                ? jaxwsCustomization.getMethodName().getName()
                : null)
            : null;
    if (operationName != null) {
      if (Names.isJavaReservedWord(operationName)) {
        return null;
      }

      return operationName;
    }
    return operation.getName();
  }