modules/jaxws/src/org/apache/axis2/jaxws/marshaller/impl/alt/DocLitWrappedMethodMarshaller.java [689:758]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    boolean isRequestWrapperAnXmlRootElement(OperationDescription opDesc, 
    			MarshalServiceRuntimeDescription msrd,
    			EndpointDescription endpointDesc) {
    	boolean isRootElement = false;
		String wrapperClassName = msrd.getRequestWrapperClassName(opDesc);
    	try {
			
			if (wrapperClassName != null) {
				AnnotationDesc aDesc = msrd.getAnnotationDesc(wrapperClassName);
				if (aDesc == null) {
					Class cls = loadClass(wrapperClassName, endpointDesc);
					aDesc = msrd.getAnnotationDesc(cls);
				}
				isRootElement = aDesc.hasXmlRootElement();
			}
			
		} catch (Throwable t) {
			if (log.isDebugEnabled()) {
				log.debug("An error occurred while processing class " + wrapperClassName + " exception is " + t);
				log.debug("The error is ignored and processing continues.");				
			}
		}
		return isRootElement;
    }
    
    /**
     * @param opDesc
     * @param msrd
     * @param endpointDesc
     * @return true if response wrapper is a root element
     */
    boolean isResponseWrapperAnXmlRootElement(OperationDescription opDesc, 
    			MarshalServiceRuntimeDescription msrd,
    			EndpointDescription endpointDesc) {
    	boolean isRootElement = false;
		String wrapperClassName = msrd.getResponseWrapperClassName(opDesc);
    	try {
			
			if (wrapperClassName != null) {
				AnnotationDesc aDesc = msrd.getAnnotationDesc(wrapperClassName);
				if (aDesc == null) {
					Class cls = loadClass(wrapperClassName, endpointDesc);
					aDesc = msrd.getAnnotationDesc(cls);
				}
				isRootElement = aDesc.hasXmlRootElement();
			}
			
		} catch (Throwable t) {
			if (log.isDebugEnabled()) {
				log.debug("An error occurred while processing class " + wrapperClassName + " exception is " + t);
				log.debug("The error is ignored and processing continues.");				
			}
		}
		return isRootElement;
    }

    /**
     * @param clsName
     * @param endpontDesc
     * @return
     * @throws ClassNotFoundException
     */
    Class loadClass(String clsName, EndpointDescription endpointDesc) throws ClassNotFoundException {
    	Class cls = null;
    	try {
            cls = MethodMarshallerUtils.loadClass(clsName);
        } catch (ClassNotFoundException e){
            cls = MethodMarshallerUtils.loadClass(clsName, endpointDesc.getAxisService().getClassLoader());
        }
        return cls;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



modules/jaxws/src/org/apache/axis2/jaxws/marshaller/impl/alt/DocLitWrappedPlusMethodMarshaller.java [795:864]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    boolean isRequestWrapperAnXmlRootElement(OperationDescription opDesc, 
    			MarshalServiceRuntimeDescription msrd,
    			EndpointDescription endpointDesc) {
    	boolean isRootElement = false;
		String wrapperClassName = msrd.getRequestWrapperClassName(opDesc);
    	try {
			
			if (wrapperClassName != null) {
				AnnotationDesc aDesc = msrd.getAnnotationDesc(wrapperClassName);
				if (aDesc == null) {
					Class cls = loadClass(wrapperClassName, endpointDesc);
					aDesc = msrd.getAnnotationDesc(cls);
				}
				isRootElement = aDesc.hasXmlRootElement();
			}
			
		} catch (Throwable t) {
			if (log.isDebugEnabled()) {
				log.debug("An error occurred while processing class " + wrapperClassName + " exception is " + t);
				log.debug("The error is ignored and processing continues.");				
			}
		}
		return isRootElement;
    }
    
    /**
     * @param opDesc
     * @param msrd
     * @param endpointDesc
     * @return true if response wrapper is a root element
     */
    boolean isResponseWrapperAnXmlRootElement(OperationDescription opDesc, 
    			MarshalServiceRuntimeDescription msrd,
    			EndpointDescription endpointDesc) {
    	boolean isRootElement = false;
		String wrapperClassName = msrd.getResponseWrapperClassName(opDesc);
    	try {
			
			if (wrapperClassName != null) {
				AnnotationDesc aDesc = msrd.getAnnotationDesc(wrapperClassName);
				if (aDesc == null) {
					Class cls = loadClass(wrapperClassName, endpointDesc);
					aDesc = msrd.getAnnotationDesc(cls);
				}
				isRootElement = aDesc.hasXmlRootElement();
			}
			
		} catch (Throwable t) {
			if (log.isDebugEnabled()) {
				log.debug("An error occurred while processing class " + wrapperClassName + " exception is " + t);
				log.debug("The error is ignored and processing continues.");				
			}
		}
		return isRootElement;
    }

    /**
     * @param clsName
     * @param endpontDesc
     * @return
     * @throws ClassNotFoundException
     */
    Class loadClass(String clsName, EndpointDescription endpointDesc) throws ClassNotFoundException {
    	Class cls = null;
    	try {
            cls = MethodMarshallerUtils.loadClass(clsName);
        } catch (ClassNotFoundException e){
            cls = MethodMarshallerUtils.loadClass(clsName, endpointDesc.getAxisService().getClassLoader());
        }
        return cls;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



