You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2004/09/14 08:46:16 UTC

cvs commit: ws-axis/java/samples/proxy ProxyService.java

dims        2004/09/13 23:46:16

  Modified:    java/samples/proxy ProxyService.java
  Log:
  Fix the operation signature
  
  Revision  Changes    Path
  1.18      +5 -4      ws-axis/java/samples/proxy/ProxyService.java
  
  Index: ProxyService.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/samples/proxy/ProxyService.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- ProxyService.java	25 Feb 2004 14:02:23 -0000	1.17
  +++ ProxyService.java	14 Sep 2004 06:46:16 -0000	1.18
  @@ -23,6 +23,7 @@
   import org.apache.axis.SimpleTargetedChain;
   import org.apache.axis.client.Call;
   import org.apache.axis.client.Service;
  +import org.apache.axis.message.SOAPEnvelope;
   import org.w3c.dom.Document;
   import samples.transport.tcp.TCPSender;
   import samples.transport.tcp.TCPTransport;
  @@ -39,10 +40,13 @@
       /**
        * Process the given message, treating it as raw XML.
        */
  -    public Document proxyService(MessageContext msgContext)
  +    public void proxyService(SOAPEnvelope env1, SOAPEnvelope env2)
           throws AxisFault
       {
           try {
  +            // Get the current Message Context
  +            MessageContext msgContext = MessageContext.getCurrentContext();
  +            
               // Look in the message context for our service
               Handler self = msgContext.getService();
               
  @@ -73,9 +77,6 @@
               Message msg = call.getResponseMessage();
   
               msgContext.setResponseMessage(msg);
  -        
  -            // return null so MsgProvider will not muck with our response
  -            return null;
           }
           catch( Exception exp ) {
               throw AxisFault.makeFault( exp );