MessageContext msgContext = context.getMessageContext();
Message msg = msgContext.getCurrentMessage();
if ( msg != null && msg.getMessageType() == Message.RESPONSE ) {
Call c = (Call) msgContext.getProperty( MessageContext.CALL );
if ( c != null ) {
XMLType xmlType = null ;
// First look for this param by name
xmlType = (XMLType) c.getParameterTypeByName(localName);
// If we can't find it by name then assume it must
// be the return type - is this correct/safe????
if ( xmlType == null )
xmlType = (XMLType) c.getReturnType();
// Now get the QName
if ( xmlType != null )
type = xmlType.getType();
}
}
if (type == null && defaultParamTypes!=null &&
params.size()<=defaultParamTypes.length) {