* @param bindingOperation
* @return If defined the operation's verb is returned, else the port's verb.
* @see #getOperationVerb(javax.wsdl.BindingOperation)
*/
public static String resolveVerb(Binding binding, BindingOperation bindingOperation) {
final HTTPBinding httpBinding = (HTTPBinding) WsdlUtils.getBindingExtension(binding);
String portVerb = httpBinding != null ? httpBinding.getVerb() : null;
String operationVerb = WsdlUtils.getOperationVerb(bindingOperation);
return operationVerb != null ? operationVerb : portVerb;
}