// Get the list of names for the output parameters
List<String> names = new ArrayList<String>();
List<ParameterDescription> pdList = new ArrayList<ParameterDescription>();
for (int i = 0; i < pds.length; i++) {
ParameterDescription pd = pds[i];
if (pd.getMode() == Mode.OUT ||
pd.getMode() == Mode.INOUT) {
names.add(pd.getParameterName());
pdList.add(pd);
}
}
// The return name is added as the last name
if (isChildReturn && !isNoReturn) {
names.add(operationDesc.getResultPartName());
}
// Get the child objects
Object[] objects = wrapperTool.unWrap(wrapperObject, names,
marshalDesc.getPropertyDescriptorMap(
wrapperObject.getClass()));
// Now create a list of paramValues so that we can populate the signature
List<PDElement> pvList = new ArrayList<PDElement>();
for (int i = 0; i < pdList.size(); i++) {
ParameterDescription pd = pdList.get(i);
Object value = objects[i];
// The object in the PDElement must be an element
Element element = null;
QName qName = new QName(pd.getTargetNamespace(), pd.getPartName());
if (!marshalDesc.getAnnotationDesc(pd.getParameterActualType()).hasXmlRootElement())
{
element = new Element(value, qName,
pd.getParameterActualType());
} else {
element = new Element(value, qName);
}
pvList.add(new PDElement(pd, element, null));