axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Glen Daniels <gdani...@macromedia.com>
Subject RE: cvs commit: xml-axis/java/src/org/apache/axis/wsdl Type.java
Date Thu, 04 Oct 2001 20:07:21 GMT
+1

+1

+1

:)  I've been harping on this one for a while.  The problem is getting the
tool access to some deployed set of type mappings...

> -----Original Message-----
> From: Russell Butek [mailto:butek@us.ibm.com]
> Sent: Thursday, October 04, 2001 4:05 PM
> To: axis-dev@xml.apache.org
> Subject: Re: cvs commit: xml-axis/java/src/org/apache/axis/wsdl
> Type.java
> 
> 
> Sam, good point.  I'll add the investigation to my todo list.
> 
> Russell Butek
> butek@us.ibm.com
> 
> 
> Sam Ruby/Raleigh/IBM@IBMUS on 10/04/2001 02:17:43 PM
> 
> Please respond to axis-dev@xml.apache.org
> 
> To:   axis-dev@xml.apache.org
> cc:
> Subject:  Re: cvs commit: 
> xml-axis/java/src/org/apache/axis/wsdl Type.java
> 
> 
> 
> Just wondering out loud: is there some way that this code 
> could be modified
> to use the type mapping registry?  Or that the type mapping 
> registry can be
> enhanced to support what this code needs.
> 
> My concerns are:
> 
> 1) Dual maintenance.  Adding a vector serializer had to be done in two
> places.
> 
> 2) User deployed serializers.  These can be dynamically 
> deployed (even on a
> service specific basis), and should be accounted for by both 
> directions of
> WSDL<=>Java.
> 
> - Sam Ruby
> 
> 
> butek@apache.org on 10/04/2001 01:52:29 PM
> 
> Please respond to axis-dev@xml.apache.org
> 
> To:   xml-axis-cvs@apache.org
> cc:
> Subject:  cvs commit: xml-axis/java/src/org/apache/axis/wsdl Type.java
> 
> 
> 
> butek       01/10/04 10:52:29
> 
>   Modified:    java/src/org/apache/axis/wsdl Type.java
>   Log:
>   Wsdl2java changes necessary for deserializer for SOAP Vector.
> 
>   Submitted by:  Carsten Ziegeler <cziegeler@sundn.de>
> 
>   Revision  Changes    Path
>   1.3       +26 -22    
> xml-axis/java/src/org/apache/axis/wsdl/Type.java
> 
>   Index: Type.java
>   ===================================================================
>   RCS file: 
> /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/Type.java,v
>   retrieving revision 1.2
>   retrieving revision 1.3
>   diff -u -r1.2 -r1.3
>   --- Type.java     2001/10/04 15:42:43  1.2
>   +++ Type.java     2001/10/04 17:52:29  1.3
>   @@ -159,52 +159,56 @@
>        private String initBaseType() {
>            String localName = qName.getLocalPart();
>            if (Utils.isSchemaNS(qName.getNamespaceURI())) {
>   -            if (localName.equals("string"))
>   +            if (localName.equals("string")) {
>                    return "java.lang.String";
>   -            else if (localName.equals("integer"))
>   +            } else if (localName.equals("integer")) {
>                    return "int";
>   -            else if (localName.equals("int"))
>   +            } else if (localName.equals("int")) {
>                    return "int";
>   -            else if (localName.equals("long"))
>   +            } else if (localName.equals("long")) {
>                    return "long";
>   -            else if (localName.equals("short"))
>   +            } else if (localName.equals("short")) {
>                    return "short";
>   -            else if (localName.equals("decimal"))
>   +            } else if (localName.equals("decimal")) {
>                    return "java.math.BigDecimal";
>   -            else if (localName.equals("float"))
>   +            } else if (localName.equals("float")) {
>                    return "float";
>   -            else if (localName.equals("double"))
>   +            } else if (localName.equals("double")) {
>                    return "double";
>   -            else if (localName.equals("boolean"))
>   +            } else if (localName.equals("boolean")) {
>                    return "boolean";
>   -            else if (localName.equals("byte"))
>   +            } else if (localName.equals("byte")) {
>                    return "byte";
>   -            else if (localName.equals("QName"))
>   +            } else if (localName.equals("QName")) {
>                    return "org.apache.axis.rpc.namespace.QName";
>   -            else if (localName.equals("dateTime"))
>   +            } else if (localName.equals("dateTime")) {
>                    return "java.util.Date";
>   -            else if (localName.equals("base64Binary"))
>   +            } else if (localName.equals("base64Binary")) {
>                    return "byte[]";
>   -            else if (localName.equals("date"))
>   +            } else if (localName.equals("date")) {
>                    return "java.util.Date";
>   -            else if (localName.equals("void"))
>   +            } else if (localName.equals("void")) {
>                    return "void";
>   +            }
>            }
>            else if (Utils.isSoapEncodingNS(qName.getNamespaceURI())) {
>   -            if (localName.equals("string"))
>   +            if (localName.equals("string")) {
>                    return "java.lang.String";
>   -            else if (localName.equals("int"))
>   +            } else if (localName.equals("int")) {
>                    return "int";
>   -            else if (localName.equals("short"))
>   +            } else if (localName.equals("short")) {
>                    return "short";
>   -            else if (localName.equals("decimal"))
>   +            } else if (localName.equals("decimal")) {
>                    return "java.math.BigDecimal";
>   -            else if (localName.equals("float"))
>   +            } else if (localName.equals("float")) {
>                    return "float";
>   -            else if (localName.equals("double"))
>   +            } else if (localName.equals("double")) {
>                    return "double";
>   -            else if (localName.equals("boolean"))
>   +            } else if (localName.equals("boolean")) {
>                    return "boolean";
>   +            } else if (localName.equals("Vector")) {
>   +                return "java.util.Vector";
>   +            }
>            }
>            return null;
>        }
> 
> 
> 
> 
> 
> 
> 

Mime
View raw message