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/handlers RPCDispatchHandler.java
Date Wed, 09 May 2001 21:01:17 GMT
rubys       01/05/09 14:01:16

  Modified:    java/src/org/apache/axis/handlers RPCDispatchHandler.java
  Log:
  Add the ability for a service to define its own typemaps programmatically
  
  Revision  Changes    Path
  1.33      +10 -1     xml-axis/java/src/org/apache/axis/handlers/RPCDispatchHandler.java
  
  Index: RPCDispatchHandler.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/handlers/RPCDispatchHandler.java,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- RPCDispatchHandler.java	2001/05/03 21:12:35	1.32
  +++ RPCDispatchHandler.java	2001/05/09 21:01:13	1.33
  @@ -81,6 +81,7 @@
       /********************************************/
       String  clsName    = (String) service.getOption( "className" );
       String  methodName = (String) service.getOption( "methodName" );
  +    String  typemap    = (String) service.getOption( "typemap" );
   
       try {
         /* We know we're doing a Java/RPC call so we can ask for the */
  @@ -116,7 +117,7 @@
                                    "Body name=" + mName + "\n" +
                                    "Service name=" + methodName,
                                  null, null );  // should they??
  -  
  +
           Debug.Print( 2, "mName: " + mName );
           Debug.Print( 2, "MethodName: " + methodName );
           Method       method = jc.getMethod(mName, args.size());
  @@ -127,12 +128,20 @@
                                    "Service name=" + methodName,
                                  null, null );
     
  +        // if a method is registerd for defining typemaps, invoke it
  +        if (typemap != null) {
  +          Method typemapMethod = jc.getMethod(typemap, 1);
  +          typemapMethod.invoke(obj, 
  +            new Object[] {msgContext.getTypeMappingRegistry()});
  +        }
  +
           Object[] argValues  =  null ;
   
           if ( args != null && args.size() > 0 ) {
             argValues = new Object[ args.size()];
             for ( i = 0 ; i < args.size() ; i++ ) {
               argValues[i]  = ((RPCParam)args.get(i)).getValue() ;
  +              System.out.println("  value: " + argValues[i] );
   
               if (DEBUG_LOG) {
                 System.out.println("  value: " + argValues[i] );
  
  
  

Mime
View raw message