Operation op = (Operation) i.next();
String name = op.getName();
if (op.isUndefined()) {
throw new WSIFException("operation " + name + " is undefined!");
}
OperationType opType = op.getStyle();
if (opType == null) {
throw new WSIFException("operation " + name + " has no type!");
}
if (opType.equals(OperationType.REQUEST_RESPONSE)) {
Input input = op.getInput();
Output output = op.getOutput();
if (input == null) {
throw new WSIFException("missing input message for operation " + name);
}
if (output == null) {
throw new WSIFException("missing output message for operation " + name);
}
} else if (opType.equals(OperationType.ONE_WAY)) {
Input input = op.getInput();
if (input == null) {
throw new WSIFException("missing input message for operation " + name);
}
} else {