axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/i18n resource.properties
Date Fri, 11 Jul 2003 12:59:19 GMT
dims        2003/07/11 05:59:19

  Modified:    java/src/org/apache/axis/wsdl/fromJava Emitter.java
               java/src/org/apache/axis/i18n resource.properties
  Log:
  Fix for Bug 21470 - Custom Exceptions kill Document style service WSDL creation
  
  Notes:
  - Inform user if they have not registered a typemapping/beanmapping for the exception
  - Use the interface namespace for the exception.
  
  Revision  Changes    Path
  1.95      +7 -0      xml-axis/java/src/org/apache/axis/wsdl/fromJava/Emitter.java
  
  Index: Emitter.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/fromJava/Emitter.java,v
  retrieving revision 1.94
  retrieving revision 1.95
  diff -u -r1.94 -r1.95
  --- Emitter.java	30 Jun 2003 02:00:24 -0000	1.94
  +++ Emitter.java	11 Jul 2003 12:59:19 -0000	1.95
  @@ -1387,8 +1387,15 @@
               // declaration whose name and type may be found in the
               // ParameterDesc.
               QName qname = param.getQName();
  +            if(param.getTypeQName() == null) {
  +                throw new AxisFault(Messages.getMessage("registerTypeMappingFor01", param.getJavaType().getName()));
  +            }
               if (param.getTypeQName().getNamespaceURI().equals("")) {
                   param.setTypeQName(new QName(intfNS,param.getTypeQName().getLocalPart()));
  +            }
  +            if (param.getQName().getNamespaceURI().equals("")) {
  +                qname = new QName(intfNS,param.getQName().getLocalPart());
  +                param.setQName(qname);
               }
               Element el = types.createElementDecl(qname.getLocalPart(),
                                                    param.getJavaType(),
  
  
  
  1.60      +1 -0      xml-axis/java/src/org/apache/axis/i18n/resource.properties
  
  Index: resource.properties
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/i18n/resource.properties,v
  retrieving revision 1.59
  retrieving revision 1.60
  diff -u -r1.59 -r1.60
  --- resource.properties	9 Jul 2003 13:24:44 -0000	1.59
  +++ resource.properties	11 Jul 2003 12:59:19 -0000	1.60
  @@ -570,6 +570,7 @@
   return02={0} returned:  {1}
   returnChain00={0} returning chain ''{1}''
   saveConfigFail00=Could not write engine config!
  +registerTypeMappingFor01=Please register a typemapping/beanmapping for ''{0}''
   
   # NOTE:  in semanticCheck00, do not translate "SOAP"
   semanticCheck00=Doing SOAP semantic checks...
  
  
  

Mime
View raw message