axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bu...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/wsdl Emitter.java
Date Mon, 24 Sep 2001 16:58:53 GMT
butek       01/09/24 09:58:53

  Modified:    java/src/org/apache/axis/wsdl Emitter.java
  Log:
  Only add packageName to deploy.xml if packageName != null.
  
  Revision  Changes    Path
  1.27      +15 -4     xml-axis/java/src/org/apache/axis/wsdl/Emitter.java
  
  Index: Emitter.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/Emitter.java,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- Emitter.java	2001/09/24 15:54:42	1.26
  +++ Emitter.java	2001/09/24 16:58:53	1.27
  @@ -1396,7 +1396,12 @@
               NamedNodeMap attributes = type.getAttributes();
               String typeName = capitalize(attributes.getNamedItem("name").getNodeValue());
   
  -            pw.println("      <" + namespacePrefix + ":" + typeName + " classname= \""
+ packageName + "." + typeName + "\"/>");
  +            if (packageName == null) {
  +                pw.println("      <" + namespacePrefix + ":" + typeName + " classname=
\"" + typeName + "\"/>");
  +            }
  +            else {
  +                pw.println("      <" + namespacePrefix + ":" + typeName + " classname=
\"" + packageName + "." + typeName + "\"/>");
  +            }
           }
           pw.println("   </beanMappings>");
   
  @@ -1450,9 +1455,15 @@
        * Write out deployment instructions for given WSDL binding
        */
       private void writeDeployBinding(PrintWriter deployPW, Binding binding) throws IOException
{
  -        deployPW.println("      <option name=\"className\" value=\""
  -                + packageName + "."
  -                + binding.getQName().getLocalPart() + "Skeleton" + "\"/>");
  +        if (packageName == null) {
  +            deployPW.println("      <option name=\"className\" value=\""
  +                             + binding.getQName().getLocalPart() + "Skeleton" + "\"/>");
  +        }
  +        else {
  +            deployPW.println("      <option name=\"className\" value=\""
  +                             + packageName + "."
  +                             + binding.getQName().getLocalPart() + "Skeleton" + "\"/>");
  +        }
   
           String methodList = "";
           Iterator operationsIterator = binding.getBindingOperations().iterator();
  
  
  

Mime
View raw message