Class returnClass = null;
if (output == null) {
throw new DeploymentException("No output message, but a mapping for it for operation " + operationName);
}
WsdlReturnValueMappingType wsdlReturnValueMapping = methodMapping.getWsdlReturnValueMapping();
String returnClassName = wsdlReturnValueMapping.getMethodReturnValue().getStringValue().trim();
try {
returnClass = ClassLoading.loadClass(returnClassName, classLoader);
} catch (ClassNotFoundException e) {
throw new DeploymentException("Could not load return type for operation " + operationName, e);
}
QName wsdlMessageQName = wsdlReturnValueMapping.getWsdlMessage().getQNameValue();
if (!wsdlMessageQName.equals(output.getQName())) {
throw new DeploymentException("OutputMessage has QName: " + output.getQName() + " but mapping specifies: " + wsdlMessageQName + " for operation " + operationName);
}
if (wsdlReturnValueMapping.isSetWsdlMessagePartName()) {
String wsdlMessagePartName = wsdlReturnValueMapping.getWsdlMessagePartName().getStringValue().trim();
if (outParamNames.contains(wsdlMessagePartName)) {
throw new DeploymentException("output message part " + wsdlMessagePartName + " has both an INOUT or OUT mapping and a return value mapping for operation " + operationName);
}
if (wrappedStyle) {