QName opName = message.getAxisOperation().getName();
partNameList.add(WSDLUtil.getPartQName(opName.getLocalPart(),
qnameSuffix,
schemaElement.getQName().getLocalPart()));
} else if (schemaType == null) {
throw new CodeGenerationException("Can not determine the schema type for the "
+ schemaElement.getName());
} else {
//we've no idea how to unwrap a non complexType!!!!!!
throw new CodeGenerationException(
CodegenMessages.getMessage("extension.unsupportedSchemaFormat",
schemaType.getName(), "complexType"));
}
try {
//set in the axis message that the unwrapping was success
message.addParameter(getParameter(
Constants.UNWRAPPED_KEY,
Boolean.TRUE));
// attach the opName and the parts name list into the
// axis message by using the holder
MessagePartInformationHolder infoHolder = new MessagePartInformationHolder();
infoHolder.setOperationName(message.getAxisOperation().getName());
infoHolder.setPartsList(partNameList);
//attach it to the parameters
message.addParameter(
getParameter(Constants.UNWRAPPED_DETAILS,
infoHolder));
} catch (AxisFault axisFault) {
throw new CodeGenerationException(axisFault);
}
}