/*
 * $RCSfile: WsInvocationReceiver.java,v $
 * $Date: 2006/01/26 14:48:59 $
 * $Revision: 1.1.2.2 $
 * $Author: andreys $
 */

/*
 * Copyright (c) 2002-2003 IST-2004-2006-511731 ModelWare - ModelBus.
 * All rights reserved.
 *
 * This software is published under the terms of the ModelBus Software License
 * in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * A copy of ModelBus Software License is provided with this distribution in
 * doc/LICENSE.txt file.
 */

/*
 * WsInvocationReceiver.java Add description 
 * 
 * @author Prawee Sriplakich (LIP6)
 * @version $Revision: 1.1.2.2 $ $Date: 2006/01/26 14:48:59 $
 * @see Add references
 *
 * TODO Add description
 * TODO Add references
 */
package org.eclipse.mddi.modelbus.adapter.infrastructure.transport.server.ws;

import javax.xml.soap.SOAPEnvelope;
import javax.xml.soap.SOAPException;

import org.eclipse.mddi.modelbus.adapter.infrastructure.transport.marshal.ws.Marshaler;

public abstract class WsInvocationReceiver  {
    
    
    Marshaler marshaler;

    /**
     * @return Returns the marshaler.
     */
    public Marshaler getMarshaler() {
        return marshaler;
    }

    /**
     * @param marshaler The marshaler to set.
     */
    public void setMarshaler(Marshaler marshaler) {
        this.marshaler = marshaler;
    }   
    
    
    
    /**
     * Processes the SOAP request and produces the SOAP response
     * 
     * @param reqMsg the SOAP request. It already contains data.
     * @param resMsg the SOAP response. It is initially empty. 
     * Its content will be filled by this method.
     * 
     * @throws SOAPException
     */
    public abstract void process(SOAPEnvelope reqMsg, SOAPEnvelope resMsg)
            throws SOAPException;
}