QName element = new QName(ns, name);
Object logical = operation.getInputType().getLogical().get(i).getLogical();
if (logical instanceof XMLType) {
((XMLType)logical).setElementName(element);
}
inputElements.add(new ElementInfo(element, null));
}
List<ElementInfo> outputElements = new ArrayList<ElementInfo>();
WebResult result = method.getAnnotation(WebResult.class);
// Default to "" for doc-lit-wrapped && non-header
ns = result != null ? result.targetNamespace() : "";
ns = getValue(ns, documentStyle && (result == null || !result.header()) ? "" : tns);
name = result != null ? result.name() : "";
name = getValue(name, "return");
QName element = new QName(ns, name);
if (operation.getOutputType() != null) {
Object logical = operation.getOutputType().getLogical();
if (logical instanceof XMLType) {
((XMLType)logical).setElementName(element);
}
outputElements.add(new ElementInfo(element, null));
}
String db = inputWrapperDT != null ? inputWrapperDT.getDataBinding() : JAXB_DATABINDING;
WrapperInfo wrapperInfo =
new WrapperInfo(db, new ElementInfo(inputWrapper, null), new ElementInfo(outputWrapper, null),
inputElements, outputElements);
wrapperInfo.setInputWrapperType(inputWrapperDT);
wrapperInfo.setOutputWrapperType(outputWrapperDT);