private static void processNoArgAndVoidReturnMethods(Definition definition, Class javaInterface) {
String namespaceURI = definition.getTargetNamespace();
String prefix = definition.getPrefix(namespaceURI);
String xsPrefix = definition.getPrefix("http://www.w3.org/2001/XMLSchema");
PortType portType = (PortType)definition.getAllPortTypes().values().iterator().next();
Element schema = null;
Document document = null;
Types types = definition.getTypes();
if (types != null) {
for (Object ext : types.getExtensibilityElements()) {
if (ext instanceof Schema) {
Element element = ((Schema)ext).getElement();
if (element.getAttribute("targetNamespace").equals(namespaceURI)) {
schema = element;
document = schema.getOwnerDocument();
break;
}
}
}
}
if (document == null) {
return;
}
// look at each operation in the port type to see if it needs fixing up
for (Object oper : portType.getOperations()) {
javax.wsdl.Operation operation = (javax.wsdl.Operation)oper;
String opName = operation.getName();
// if input message has no parts, add one containing an empty wrapper
Input input = operation.getInput();