axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/transport/http HTTPTransport.java
Date Fri, 03 Aug 2001 17:08:09 GMT
rubys       01/08/03 10:08:09

  Modified:    java/samples/stock client_deploy.xml
               java/src/org/apache/axis/client ServiceClient.java
               java/src/org/apache/axis/transport/http HTTPTransport.java
  Log:
  Enable client side handlers to be triggered based on the namespace instead
  of simply based on the soap action
  
  Revision  Changes    Path
  1.6       +5 -5      xml-axis/java/samples/stock/client_deploy.xml
  
  Index: client_deploy.xml
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/samples/stock/client_deploy.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- client_deploy.xml	2001/06/25 14:30:25	1.5
  +++ client_deploy.xml	2001/08/03 17:08:09	1.6
  @@ -1,8 +1,8 @@
  -<!-- Use this file to deploy some handlers/chains and services  -->
  -<!-- on the client.  To do this simply run:                     -->
  -<!--   java org.apache.axis.utils.Admin client_deploy.xml       -->
  -<!--      from the same dir that the Axis client will run in    -->
  -<!-- This file will be replaced by WSDD once it's ready         -->
  +<!-- Use this file to deploy some handlers/chains and services   -->
  +<!-- on the client.  To do this simply run:                      -->
  +<!--   java org.apache.axis.utils.Admin client client_deploy.xml -->
  +<!--      from the same dir that the Axis client will run in     -->
  +<!-- This file will be replaced by WSDD once it's ready          -->
   
   <m:deploy xmlns:m="AdminService">
     <handler name="log" class="org.apache.axis.handlers.LogHandler" />
  
  
  
  1.34      +3 -0      xml-axis/java/src/org/apache/axis/client/ServiceClient.java
  
  Index: ServiceClient.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/client/ServiceClient.java,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- ServiceClient.java	2001/08/02 16:50:02	1.33
  +++ ServiceClient.java	2001/08/03 17:08:09	1.34
  @@ -446,7 +446,10 @@
           if ( body.getNamespaceURI() == null ) {
               throw new AxisFault("ServiceClient.invoke", "Cannot invoke ServiceClient with
null namespace URI for method "+body.getMethodName(),
                                   null, null);
  +        } else if (msgContext.getTargetService() == null) {
  +            msgContext.setTargetService(body.getNamespaceURI());
           }
  +       
           
           if (DEBUG_LOG) {
               try {
  
  
  
  1.2       +3 -1      xml-axis/java/src/org/apache/axis/transport/http/HTTPTransport.java
  
  Index: HTTPTransport.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/transport/http/HTTPTransport.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- HTTPTransport.java	2001/06/29 19:59:06	1.1
  +++ HTTPTransport.java	2001/08/03 17:08:09	1.2
  @@ -125,6 +125,8 @@
           mc.setTransportName(transportName);
           
           // !!! Not sure about this
  -        mc.setTargetService( (String)mc.getProperty(ACTION) );
  +        if (mc.getTargetService() == null) {
  +            mc.setTargetService( (String)mc.getProperty(ACTION) );
  +        }
       }
   }
  
  
  

Mime
View raw message