axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: ws-axis/java/samples/proxy ProxyService.java
Date Tue, 14 Sep 2004 06:46:16 GMT
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 );
  
  
  

Mime
View raw message