1   package org.codehaus.xfire.xmlbeans;
2   
3   import org.apache.xmlbeans.XmlObject;
4   import org.codehaus.xfire.MessageContext;
5   
6   /***
7    * A handler which captures a request and echos a response.
8    * 
9    * @author <a href="mailto:dan@envoisolutions.com">Dan Diephouse</a>
10   */
11  public class TestHandler
12  	extends AbstractXMLBeansHandler
13  {
14      private XmlObject[] request;
15      
16      public XmlObject[] invoke(XmlObject[] request, MessageContext context) throws Exception
17      {
18          this.request = request;
19          // we can't echo the request because of a bug in xmlbeans.
20          return null;
21      }
22  
23      public XmlObject[] getRequest()
24      {
25          return request;
26      }
27  }