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/src/org/apache/axis/wsdl/fromJava Types.java
Date Fri, 25 Feb 2005 04:06:58 GMT
dims        2005/02/24 20:06:58

  Modified:    java/src/org/apache/axis/wsdl/fromJava Types.java
  Log:
  Key off the WS-I BP flag.
  
  Revision  Changes    Path
  1.111     +11 -6     ws-axis/java/src/org/apache/axis/wsdl/fromJava/Types.java
  
  Index: Types.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/wsdl/fromJava/Types.java,v
  retrieving revision 1.110
  retrieving revision 1.111
  diff -u -r1.110 -r1.111
  --- Types.java	24 Feb 2005 21:59:55 -0000	1.110
  +++ Types.java	25 Feb 2005 04:06:58 -0000	1.111
  @@ -15,18 +15,22 @@
    */
   package org.apache.axis.wsdl.fromJava;
   
  -import org.apache.axis.*;
  -import org.apache.axis.soap.SOAPConstants;
  +import org.apache.axis.AxisFault;
  +import org.apache.axis.AxisProperties;
  +import org.apache.axis.Constants;
  +import org.apache.axis.InternalException;
  +import org.apache.axis.MessageContext;
   import org.apache.axis.components.logger.LogFactory;
  +import org.apache.axis.constants.Style;
   import org.apache.axis.description.ServiceDesc;
  +import org.apache.axis.encoding.DefaultJAXRPC11TypeMappingImpl;
   import org.apache.axis.encoding.Serializer;
   import org.apache.axis.encoding.SerializerFactory;
   import org.apache.axis.encoding.SimpleType;
   import org.apache.axis.encoding.TypeMapping;
  -import org.apache.axis.encoding.DefaultJAXRPC11TypeMappingImpl;
   import org.apache.axis.encoding.ser.BeanSerializerFactory;
   import org.apache.axis.encoding.ser.EnumSerializerFactory;
  -import org.apache.axis.constants.Style;
  +import org.apache.axis.soap.SOAPConstants;
   import org.apache.axis.utils.JavaUtils;
   import org.apache.axis.utils.Messages;
   import org.apache.axis.utils.XMLUtils;
  @@ -715,8 +719,9 @@
               // instead use "MyArrayOf" (gag) 
               String arrayTypePrefix = "ArrayOf";
   
  -            if (tm instanceof DefaultJAXRPC11TypeMappingImpl ||
  -               defaultTM instanceof DefaultJAXRPC11TypeMappingImpl) {
  +            boolean isWSICompliant = JavaUtils.isTrue(
  +                    AxisProperties.getProperty(Constants.WSIBP11_COMPAT_PROPERTY));
  +            if (isWSICompliant) {
                   arrayTypePrefix = "MyArrayOf";
               }
               
  
  
  

Mime
View raw message