Author: mmerz
Date: Tue Nov  2 15:52:54 2004
New Revision: 56444

Added:
   
incubator/beehive/branches/v1/alpha/samples/EmployeeWS/WEB-INF/client-build.xml
Modified:
   
incubator/beehive/branches/v1/alpha/samples/EmployeeWS/WEB-INF/src/web/EmployeeWS.jws
   
incubator/beehive/branches/v1/alpha/wsm/src/runtime/org/apache/beehive/wsm/axis/AnnotatedWebServiceDeploymentHandler.java
Log:
modified the Employee sample, and removed the System.out from 
AnnotatedWebServiceDeploymentHandler.

Contributor: Daryoush Mehrtash


Added: 
incubator/beehive/branches/v1/alpha/samples/EmployeeWS/WEB-INF/client-build.xml
==============================================================================
--- (empty file)
+++ 
incubator/beehive/branches/v1/alpha/samples/EmployeeWS/WEB-INF/client-build.xml 
    Tue Nov  2 15:52:54 2004
@@ -0,0 +1,68 @@
+<?xml version="1.0" ?>
+
+<project name="AddressBookClient" basedir="." default="all">
+       
+       <property name="AddressBook.wsdl.url" 
+               
value="http://localhost:8080/EmployeeWS/web/EmployeeWS.jws?wsdl"; />
+       
+       
+       <path id="jars">
+           <fileset dir="lib">
+               <include name="**/*.jar"/>
+           </fileset>
+       </path>
+       
+       <taskdef name="wsdl2java" 
classname="org.apache.axis.tools.ant.wsdl.Wsdl2javaAntTask"
+        loaderref="axis" >
+        <classpath refid="jars"/>
+       </taskdef>
+
+ 
+       <target name="clean">
+               <delete dir="build" />
+       </target>
+       
+       <target name="dirs">
+               <mkdir dir="build" />
+               <mkdir dir="build/generated" />
+               <mkdir dir="build/classes" />
+
+       </target>       
+       <target name="all" depends="genClient, compile, test"/>
+       
+       <target name="genClient" depends="dirs">
+           <wsdl2java url="${AddressBook.wsdl.url}"
+                      output="build/generated"
+                      testcase="yes">
+           </wsdl2java>
+
+       </target>
+       
+       <target name="compile" depends="genClient">
+                <javac srcdir="build/generated"
+                       destdir="build/classes"
+                       classpathref="jars"
+                       failonerror="true"
+                       source="1.4"
+                       />
+                       
+          </target>    
+       
+       <target name="test" depends="compile">
+               <junit printsummary="yes" haltonfailure="yes" showoutput="yes">
+               <classpath>
+                     <pathelement location= "build/classes"/>
+                     <path refid="jars"/>
+                 </classpath>
+
+
+               <batchtest fork="yes" todir=".">
+                   <fileset dir="build/classes">
+                     <include name="**/*Test*.class"/>
+                   </fileset>
+                 </batchtest>
+               </junit>
+               
+       </target>
+       
+</project>
\ No newline at end of file

Modified: 
incubator/beehive/branches/v1/alpha/samples/EmployeeWS/WEB-INF/src/web/EmployeeWS.jws
==============================================================================
--- 
incubator/beehive/branches/v1/alpha/samples/EmployeeWS/WEB-INF/src/web/EmployeeWS.jws
       (original)
+++ 
incubator/beehive/branches/v1/alpha/samples/EmployeeWS/WEB-INF/src/web/EmployeeWS.jws
       Tue Nov  2 15:52:54 2004
@@ -24,13 +24,11 @@
 @WebService( targetNamespace="http://www.beehive.com/EmployeeDB";)
 public class EmployeeWS {
 
-
- 
-    @Control 
+   @Control 
     public EmployeeDBControl employeeDB;
 
 
-   
+
        @WebMethod
        public void createTable() throws RemoteException,SQLException {
                employeeDB.createTable();
@@ -67,5 +65,6 @@
         employeeDB.deleteEmployee(p_id);
 
     }
+
 
 }

Modified: 
incubator/beehive/branches/v1/alpha/wsm/src/runtime/org/apache/beehive/wsm/axis/AnnotatedWebServiceDeploymentHandler.java
==============================================================================
--- 
incubator/beehive/branches/v1/alpha/wsm/src/runtime/org/apache/beehive/wsm/axis/AnnotatedWebServiceDeploymentHandler.java
   (original)
+++ 
incubator/beehive/branches/v1/alpha/wsm/src/runtime/org/apache/beehive/wsm/axis/AnnotatedWebServiceDeploymentHandler.java
   Tue Nov  2 15:52:54 2004
@@ -192,14 +192,12 @@
                 int indexOfDot = relPath.indexOf(".");
                 if (-1 != indexOfDot) relPath = relPath.substring(0, 
indexOfDot);
                 String clsName = relPath.replaceAll("/", ".");
-                log.debug("looking for webserivce in class: " + clsName);
-                System.out.println("looking for webserivce in class: " + 
clsName);  //TODO remove this
-                try {
+                log.info("looking for webserivce in class: " + clsName);
+                 try {
                     Class result = 
getClass().getClassLoader().loadClass(clsName);
                     return result;
                 } catch (ClassNotFoundException e) {
-                    log.debug("class: " + clsName + " was not found by the 
AnnotatedWebServiceDeploymentHandler continue to the next handler. ");
-                    System.out.println("class: " + clsName + " was not found 
by the AnnotatedWebServiceDeploymentHandler continue to the next handler. ");  
//TODO: Remove this
+                    log.info("class: " + clsName + " was not found by the 
AnnotatedWebServiceDeploymentHandler continue to the next handler. ");
                     return null;
                 }
             }

Reply via email to