axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hemap...@apache.org
Subject cvs commit: ws-axis/contrib/ews/samples/ejb/echo build.xml
Date Fri, 09 Jul 2004 05:07:23 GMT
hemapani    2004/07/08 22:07:23

  Added:       contrib/ews/samples/ejb/echo/org/apache/ws/echosample
                        EchoBean.java SmallEchoStruct.java Echo.java
                        EchoStruct.java
               contrib/ews/samples/ejb/echo/META-INF webservice.xml
                        ejb-jar.xml
               contrib/ews/samples/ejb/echo build.xml
  Log:
  add new echo service to test commonly used types 
  java types and struct
  
  Revision  Changes    Path
  1.1                  ws-axis/contrib/ews/samples/ejb/echo/org/apache/ws/echosample/EchoBean.java
  
  Index: EchoBean.java
  ===================================================================
  
  package org.apache.ws.echosample;
  public class EchoBean implements javax.ejb.SessionBean{
  	public void ejbCreate() {}
  	
  	public void echoVoid(){}
  	public int echoInt(int in){
  		return in;
  	}
  	public double echoDouble(double in){
  		return in;
  	}
  	public float echoFloat(float in){
  		return in;
  	}
  	public boolean echoBoolean(boolean in){
  		return in;
  	}
  	public String echoString(String in){
  		return in;
  	}
  	public short echoShort(short in){
  		return in;
  	}
  	public long echoLong(long in){
  		return in;
  	}
  	public char echoChar(char in){
  		return in;
  	}
  	public byte[] echoBytes(byte[] in){
  		return in;
  	}
  	public void echoEvoid(){
  		
  	}
  	public EchoStruct echoStruct(EchoStruct in){
  		return in;
  	}
  //	public EchoStruct[] echoAStruct(EchoStruct[] in){
  //		return in;
  //	}
  		
  	public void ejbActivate() throws javax.ejb.EJBException, java.rmi.RemoteException {}
  	public void ejbPassivate() throws javax.ejb.EJBException, java.rmi.RemoteException {}
  	public void ejbRemove() throws javax.ejb.EJBException, java.rmi.RemoteException {}
  	public void setSessionContext(javax.ejb.SessionContext arg0)throws javax.ejb.EJBException,
java.rmi.RemoteException {}
  }
  
  
  
  1.1                  ws-axis/contrib/ews/samples/ejb/echo/org/apache/ws/echosample/SmallEchoStruct.java
  
  Index: SmallEchoStruct.java
  ===================================================================
  
  package org.apache.ws.echosample;
  
  import java.io.Serializable;
  
  public class SmallEchoStruct implements Serializable{
  	private String val1;
  	private String val2;
      /**
       * @return
       */
      public String getVal1() {
          return val1;
      }
  
      /**
       * @return
       */
      public String getVal2() {
          return val2;
      }
  
      /**
       * @param string
       */
      public void setVal1(String string) {
          val1 = string;
      }
  
      /**
       * @param string
       */
      public void setVal2(String string) {
          val2 = string;
      }
  
  }
  
  
  
  1.1                  ws-axis/contrib/ews/samples/ejb/echo/org/apache/ws/echosample/Echo.java
  
  Index: Echo.java
  ===================================================================
  package org.apache.ws.echosample;
  public interface Echo  extends java.rmi.Remote {
  	public void echoVoid()throws java.rmi.RemoteException;
  	public int echoInt(int in)throws java.rmi.RemoteException;
  	public double echoDouble(double in)throws java.rmi.RemoteException;
  	public float echoFloat(float in)throws java.rmi.RemoteException;
  	public boolean echoBoolean(boolean in)throws java.rmi.RemoteException;
  	public String echoString(String in)throws java.rmi.RemoteException;
  	public short echoShort(short in)throws java.rmi.RemoteException;
  	public long echoLong(long in)throws java.rmi.RemoteException;
  	//public char echoChar(char in);
  	public byte[] echoBytes(byte[] in)throws java.rmi.RemoteException;
  	public void echoEvoid()throws java.rmi.RemoteException;
  	public EchoStruct echoStruct(EchoStruct in)throws java.rmi.RemoteException;
  	//public EchoStruct[] echoAStruct(EchoStruct[] in)throws java.rmi.RemoteException;
  	
  }
  
  
  
  1.1                  ws-axis/contrib/ews/samples/ejb/echo/org/apache/ws/echosample/EchoStruct.java
  
  Index: EchoStruct.java
  ===================================================================
  package org.apache.ws.echosample;
  
  import java.io.Serializable;
  
  public class EchoStruct implements Serializable{
  	private int intVal;
  	private double doubleVal;
  	private byte[] bytesVal;
  	private float floatVal;
  	private long longVal;
  	private short shortVal;
  	private boolean boolaenVal;
  	
  	private String strVal;
  	
  	private int[] intaVal;
  	private double[] doubleaVal;
  	private byte[][] bytesaVal;
  	private float[] floataVal;
  	private long[] longaVal;
  	private short[] shortaVal;
  	private boolean[] boolaenaVal;
  	
  	private String[] straVal;
  	
  	private SmallEchoStruct sturctVal;
  	private SmallEchoStruct sturctaVal;
  	
      /**
       * @return
       */
      public boolean[] getBoolaenaVal() {
          return boolaenaVal;
      }
  
      /**
       * @return
       */
      public boolean isBoolaenVal() {
          return boolaenVal;
      }
  
      /**
       * @return
       */
      public byte[][] getBytesaVal() {
          return bytesaVal;
      }
  
      /**
       * @return
       */
      public byte[] getBytesVal() {
          return bytesVal;
      }
  
     
     
  
      /**
       * @return
       */
      public double[] getDoubleaVal() {
          return doubleaVal;
      }
  
      /**
       * @return
       */
      public double getDoubleVal() {
          return doubleVal;
      }
  
      /**
       * @return
       */
      public float[] getFloataVal() {
          return floataVal;
      }
  
      /**
       * @return
       */
      public float getFloatVal() {
          return floatVal;
      }
  
      /**
       * @return
       */
      public int[] getIntaVal() {
          return intaVal;
      }
  
      /**
       * @return
       */
      public int getIntVal() {
          return intVal;
      }
  
      /**
       * @return
       */
      public long[] getLongaVal() {
          return longaVal;
      }
  
      /**
       * @return
       */
      public long getLongVal() {
          return longVal;
      }
  
      /**
       * @return
       */
      public short[] getShortaVal() {
          return shortaVal;
      }
  
      /**
       * @return
       */
      public short getShortVal() {
          return shortVal;
      }
  
      /**
       * @return
       */
      public String[] getStraVal() {
          return straVal;
      }
  
      /**
       * @return
       */
      public String getStrVal() {
          return strVal;
      }
  
      /**
       * @param bs
       */
      public void setBoolaenaVal(boolean[] bs) {
          boolaenaVal = bs;
      }
  
      /**
       * @param b
       */
      public void setBoolaenVal(boolean b) {
          boolaenVal = b;
      }
  
      /**
       * @param bs
       */
      public void setBytesaVal(byte[][] bs) {
          bytesaVal = bs;
      }
  
      /**
       * @param bs
       */
      public void setBytesVal(byte[] bs) {
          bytesVal = bs;
      }
  
      
      /**
       * @param ds
       */
      public void setDoubleaVal(double[] ds) {
          doubleaVal = ds;
      }
  
      /**
       * @param d
       */
      public void setDoubleVal(double d) {
          doubleVal = d;
      }
  
      /**
       * @param fs
       */
      public void setFloataVal(float[] fs) {
          floataVal = fs;
      }
  
      /**
       * @param f
       */
      public void setFloatVal(float f) {
          floatVal = f;
      }
  
      /**
       * @param is
       */
      public void setIntaVal(int[] is) {
          intaVal = is;
      }
  
      /**
       * @param i
       */
      public void setIntVal(int i) {
          intVal = i;
      }
  
      /**
       * @param ls
       */
      public void setLongaVal(long[] ls) {
          longaVal = ls;
      }
  
      /**
       * @param l
       */
      public void setLongVal(long l) {
          longVal = l;
      }
  
      /**
       * @param ses
       */
      public void setShortaVal(short[] ses) {
          shortaVal = ses;
      }
  
      /**
       * @param s
       */
      public void setShortVal(short s) {
          shortVal = s;
      }
  
      /**
       * @param strings
       */
      public void setStraVal(String[] strings) {
          straVal = strings;
      }
  
      /**
       * @param string
       */
      public void setStrVal(String string) {
          strVal = string;
      }
  
      /**
       * @return
       */
      public SmallEchoStruct getSturctaVal() {
          return sturctaVal;
      }
  
      /**
       * @return
       */
      public SmallEchoStruct getSturctVal() {
          return sturctVal;
      }
  
      /**
       * @param struct
       */
      public void setSturctaVal(SmallEchoStruct struct) {
          sturctaVal = struct;
      }
  
      /**
       * @param struct
       */
      public void setSturctVal(SmallEchoStruct struct) {
          sturctVal = struct;
      }
  
  }
  
  
  
  1.1                  ws-axis/contrib/ews/samples/ejb/echo/META-INF/webservice.xml
  
  Index: webservice.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <webservices xmlns="http://java.sun.com/xml/ns/j2ee" 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
  xmlns:ns1="http://echosample.ws.apache.org"
  xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
  http://www.ibm.com/standards/xml/webservices/j2ee/j2ee_web_services_1_1.xsd" version="1.1">
      <description>echo Service</description>
  	<display-name>echo</display-name>
  	<webservice-description >
  		<description>echo</description>
  		<display-name>echo</display-name>
  		<webservice-description-name >echoService</webservice-description-name>
  		<wsdl-file >echo.wsdl</wsdl-file>
  		<jaxrpc-mapping-file >echomapping.xml</jaxrpc-mapping-file>
  		<port-component >
  			<description >echo</description>
  			<display-name >echo</display-name>
  			
  			<icon xml:lang="en-us" id="ID000298">
  				<small-icon>token</small-icon>
  				<large-icon>token</large-icon>
  			</icon>
  
  			<port-component-name >echo</port-component-name>
  			<wsdl-port id="ID000311">ns1:echoPort</wsdl-port>
  			<service-endpoint-interface >org.apache.ws.echosample.Echo</service-endpoint-interface>
  			<service-impl-bean >
  				<ejb-link >echo</ejb-link>
  			</service-impl-bean>
  		</port-component>
  	</webservice-description>
  </webservices>
  
  
  
  1.1                  ws-axis/contrib/ews/samples/ejb/echo/META-INF/ejb-jar.xml
  
  Index: ejb-jar.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <ejb-jar>
  	<display-name>BookQuoteService</display-name>
  	<enterprise-beans>
  		<session>
  			<display-name>echo</display-name>
  			<ejb-name>echo</ejb-name>
  			<home>org.apache.ws.echosample.EchoHome</home>
  			<remote>org.apache.ws.echosample.EchoEJB</remote>
  			<ejb-class>org.apache.ws.echosample.EchoBean</ejb-class>
  			<session-type>Stateless</session-type>
  			<transaction-type>Bean</transaction-type>
  		</session>
  	</enterprise-beans>
  </ejb-jar>
  
  
  
  1.1                  ws-axis/contrib/ews/samples/ejb/echo/build.xml
  
  Index: build.xml
  ===================================================================
  <?xml version="1.0"?>
  <project basedir="." default="jar">
  	<property name="src" location="."/>
  	<property name="build" location="build"/>
  	<property name="build.classes" location="${build}/classes"/>
  	<property name="build.lib" location="${build}/lib"/>
  	<property name="lib" location="lib"/>
  	<property name="jar.dir" location="../../../target/generated/samples/"/>
  	<target name="compile">
  	   <mkdir dir="${build.classes}"/>
  	   <mkdir dir="${build.lib}"/>
  		<javac destdir="${build.classes}" debug="on">
  			<classpath refid="maven.dependency.classpath" />
  			<src path="${src}"/>
  		</javac>
  	</target>
  	<target name="jar" depends="compile">
  		<mkdir dir="${build.classes}/META-INF/"/>
  		<copy file ="${basedir}/META-INF/webservice.xml" todir="${build.classes}/META-INF"/>
  		<copy file ="${basedir}/META-INF/ejb-jar.xml" todir="${build.classes}/META-INF"/>
  		<mkdir dir="${jar.dir}"/>
   		<jar jarfile="${jar.dir}/echo.jar" basedir="${build.classes}" >
  		<include name="**" />
  		</jar>
  
              <copy todir="${build.classes}/META-INF">
  			<fileset dir="${basedir}/META-INF/">
  			<include name="**/*.xml"/>
  			<exclude name="build.xml"/>
  			</fileset>
  		</copy>
  
  	<!--	<copy file ="${jar.dir}/echo.jar.jar" todir="${build.classes}"/>
  		<jar jarfile="${jar.dir}/echo.jar.ear" basedir="${build.classes}">
  			<include name="**/webservice.xml" />
  			<include name="**/application.xml" />
  			<include name="**/*.jar" />
  			<include name="**/*.war" />
  		</jar> -->
  		 
  		<delete dir="${build}"/>
  	</target>
  </project>
  
  
  

Mime
View raw message