axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdani...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/utils WSDLUtils.java
Date Tue, 28 Aug 2001 00:11:54 GMT
gdaniels    01/08/27 17:11:54

  Modified:    java/src/org/apache/axis/encoding DateSerializer.java
               java/src/org/apache/axis/utils WSDLUtils.java
  Log:
  Fix synchronization bug in DateSerializer (submitted by Rick Hansen
  <Richard.Hansen@westgroup.com>).
  
  Fix namespace-qualification of messages in generated WSDL.  This
  seems to enable GLUE and .NET to generate functional proxies.
  
  Revision  Changes    Path
  1.9       +5 -1      xml-axis/java/src/org/apache/axis/encoding/DateSerializer.java
  
  Index: DateSerializer.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/encoding/DateSerializer.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- DateSerializer.java	2001/07/29 20:05:27	1.8
  +++ DateSerializer.java	2001/08/28 00:11:53	1.9
  @@ -170,7 +170,11 @@
           throws IOException
       {
           context.startElement(name, attributes);
  -        context.writeString(zulu.format((Date)value));
  +        String fdate;
  +        synchronized (zulu) {
  +            fdate = zulu.format((Date)value);
  +        }
  +        context.writeString(fdate);
           context.endElement();
       }
   }
  
  
  
  1.8       +7 -5      xml-axis/java/src/org/apache/axis/utils/WSDLUtils.java
  
  Index: WSDLUtils.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/utils/WSDLUtils.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- WSDLUtils.java	2001/08/24 19:59:03	1.7
  +++ WSDLUtils.java	2001/08/28 00:11:53	1.8
  @@ -104,7 +104,7 @@
   
           portType.setQName(new javax.wsdl.QName(url, name + "PortType"));
   
  -        Method[] methods = cls.getMethods();
  +        Method[] methods = cls.getDeclaredMethods();
           ArrayList encodingList = new ArrayList();
           encodingList.add(Constants.URI_SOAP_ENC);
   
  @@ -117,13 +117,13 @@
   
               Input input = def.createInput();
   
  -            msg = getRequestMessage(def, methods[i], reg);
  +            msg = getRequestMessage(def, url, methods[i], reg);
               input.setMessage(msg);
               oper.setInput(input);
   
               def.addMessage(msg);
   
  -            msg = getResponseMessage(def, methods[i], reg);
  +            msg = getResponseMessage(def, url, methods[i], reg);
               Output output = def.createOutput();
               output.setMessage(msg);
               oper.setOutput(output);
  @@ -186,12 +186,13 @@
       }
   
       public static Message getRequestMessage(Definition def,
  +                                            String namespace,
                                               Method method,
                                               TypeMappingRegistry reg)
       {
           Message msg = def.createMessage();
   
  -        javax.wsdl.QName qName = new javax.wsdl.QName("",
  +        javax.wsdl.QName qName = new javax.wsdl.QName(namespace,
                                           method.getName().concat("Request"));
   
           msg.setQName(qName);
  @@ -206,12 +207,13 @@
       }
   
       public static Message getResponseMessage(Definition def,
  +                                             String namespace,
                                                Method method,
                                                TypeMappingRegistry reg)
       {
           Message msg = def.createMessage();
   
  -        javax.wsdl.QName qName = new javax.wsdl.QName("",
  +        javax.wsdl.QName qName = new javax.wsdl.QName(namespace,
                                           method.getName().concat("Response"));
   
           msg.setQName(qName);
  
  
  

Mime
View raw message