Boolean soapActionRequired = soapOperation.getSoapActionRequired(); String soapActionRequiredString = soapActionRequired == null ? null : soapActionRequired.toString();
/** * Get the soapAction value for a given operation. * * @param operation The WSDL BindingOperation. * @return the soapAction value if it exists. */ public static String getSoapAction(final BindingOperation operation) { String soapActionUri = ""; if (operation != null) { List<ExtensibilityElement> extElements = operation.getExtensibilityElements(); for (ExtensibilityElement extElement : extElements) { if (extElement instanceof SOAPOperation) { soapActionUri = ((SOAPOperation) extElement).getSoapActionURI(); break; } else if (extElement instanceof SOAP12Operation) { SOAP12Operation soapOperation = ((SOAP12Operation) extElement); Boolean soapActionRequired = soapOperation.getSoapActionRequired(); if ((soapActionRequired == null) || soapActionRequired) { soapActionUri = soapOperation.getSoapActionURI(); } break; } } } return soapActionUri; }
/** * Get the soapAction value for a given operation. * * @param operation The WSDL BindingOperation. * @return the soapAction value if it exists. */ public static String getSoapAction(final BindingOperation operation) { String soapActionUri = ""; if (operation != null) { List<ExtensibilityElement> extElements = operation.getExtensibilityElements(); for (ExtensibilityElement extElement : extElements) { if (extElement instanceof SOAPOperation) { soapActionUri = ((SOAPOperation) extElement).getSoapActionURI(); break; } else if (extElement instanceof SOAP12Operation) { SOAP12Operation soapOperation = ((SOAP12Operation) extElement); Boolean soapActionRequired = soapOperation.getSoapActionRequired(); if ((soapActionRequired == null) || soapActionRequired) { soapActionUri = soapOperation.getSoapActionURI(); } break; } } } return soapActionUri; }
Boolean soapActionRequired = soapOperation.getSoapActionRequired(); String soapActionRequiredString = soapActionRequired == null ? null : soapActionRequired.toString();