*
* @param port WSDL port to check
* @return {@code true} if there are request/response present on the port; returns {@code false} otherwise
*/
public static boolean checkForRequestResponseOperations(WSDLPort port) {
WSDLBoundPortType portType;
if (port == null || null == (portType = port.getBinding())) {
//no WSDL perhaps? Returning false here means that will be no reverse sequence. That is the correct behavior.
return false;
}
for (WSDLBoundOperation boundOperation : portType.getBindingOperations()) {
if (!boundOperation.getOperation().isOneWay()) {
return true;
}
}
return false;