if ( objRes != null ) {
// In the old skeleton a param list was returned, which
// contained the RPC params. Preserve this for now.
if (objRes instanceof ParamList) {
ParamList list = (ParamList)objRes;
for (int i = 0; i < list.size (); ++i) {
if (list.get (i) instanceof RPCParam) {
resBody.addParam ((RPCParam) list.get (i));
}
else {
resBody.addParam (new RPCParam (getParameterName(obj, methods[index],i, mName),
list.get (i)));
}
}
}
else {
QName returnQName = getReturnQName(serviceDesc, mName);