axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r473643 - in /webservices/axis2/branches/java/1_1/modules/samples: quickstart/ quickstart/resources/ quickstart/resources/META-INF/ quickstart/src/ quickstart/src/samples/ quickstart/src/samples/quickstart/ quickstart/src/samples/quickstart...
Date Sat, 11 Nov 2006 05:32:20 GMT
Author: dims
Date: Fri Nov 10 21:32:17 2006
New Revision: 473643

URL: http://svn.apache.org/viewvc?view=rev&rev=473643
Log:
quick start examples - pojo service, adb service/client, xmlbeans service/client, axiom based service/client

Added:
    webservices/axis2/branches/java/1_1/modules/samples/quickstart/
    webservices/axis2/branches/java/1_1/modules/samples/quickstart/build.xml
    webservices/axis2/branches/java/1_1/modules/samples/quickstart/resources/
    webservices/axis2/branches/java/1_1/modules/samples/quickstart/resources/META-INF/
    webservices/axis2/branches/java/1_1/modules/samples/quickstart/resources/META-INF/services.xml
    webservices/axis2/branches/java/1_1/modules/samples/quickstart/src/
    webservices/axis2/branches/java/1_1/modules/samples/quickstart/src/samples/
    webservices/axis2/branches/java/1_1/modules/samples/quickstart/src/samples/quickstart/
    webservices/axis2/branches/java/1_1/modules/samples/quickstart/src/samples/quickstart/service/
    webservices/axis2/branches/java/1_1/modules/samples/quickstart/src/samples/quickstart/service/pojo/
    webservices/axis2/branches/java/1_1/modules/samples/quickstart/src/samples/quickstart/service/pojo/StockQuoteService.java
    webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/
    webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/build.xml
    webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/resources/
    webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/resources/META-INF/
    webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/resources/META-INF/StockQuoteService.wsdl
    webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/src/
    webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/src/samples/
    webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/src/samples/quickstart/
    webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/src/samples/quickstart/clients/
    webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/src/samples/quickstart/clients/ADBClient.java
    webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/src/samples/quickstart/service/
    webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/src/samples/quickstart/service/adb/
    webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/src/samples/quickstart/service/adb/StockQuoteServiceSkeleton.java
    webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/
    webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/build.xml
    webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/resources/
    webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/resources/META-INF/
    webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/resources/META-INF/StockQuoteService.wsdl
    webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/resources/META-INF/services.xml
    webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/src/
    webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/src/samples/
    webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/src/samples/quickstart/
    webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/src/samples/quickstart/clients/
    webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/src/samples/quickstart/clients/AXIOMClient.java
    webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/src/samples/quickstart/service/
    webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/src/samples/quickstart/service/axiom/
    webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/src/samples/quickstart/service/axiom/StockQuoteService.java
    webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/
    webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/build.xml
    webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/resources/
    webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/resources/META-INF/
    webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/resources/META-INF/StockQuoteService.wsdl
    webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/src/
    webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/src/samples/
    webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/src/samples/quickstart/
    webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/src/samples/quickstart/clients/
    webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/src/samples/quickstart/clients/XMLBEANSClient.java
    webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/src/samples/quickstart/service/
    webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/src/samples/quickstart/service/xmlbeans/
    webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/src/samples/quickstart/service/xmlbeans/StockQuoteServiceSkeleton.java

Added: webservices/axis2/branches/java/1_1/modules/samples/quickstart/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstart/build.xml?view=auto&rev=473643
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstart/build.xml (added)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstart/build.xml Fri Nov 10 21:32:17 2006
@@ -0,0 +1,56 @@
+<project basedir="." default="generate.service">
+
+    <property environment="env"/>
+    <property name="AXIS2_HOME" value="${env.AXIS2_HOME}"/>
+
+    <property name="build.dir" value="build"/>
+
+    <path id="axis2.classpath">
+        <fileset dir="${AXIS2_HOME}/lib">
+            <include name="*.jar"/>
+        </fileset>
+    </path>
+
+    <target name="compile.service">
+        <delete dir="${build.dir}"/>
+        <mkdir dir="${build.dir}"/>
+        <mkdir dir="${build.dir}/classes"/>
+
+        <!--First let's compile the classes-->
+        <javac debug="on" 
+               fork="true"
+               destdir="${build.dir}/classes" 
+               srcdir="${basedir}/src"
+               classpathref="axis2.classpath">
+        </javac>
+    </target>
+
+    <target name="generate.wsdl" depends="compile.service">
+        <taskdef name="java2wsdl"
+                 classname="org.apache.ws.java2wsdl.Java2WSDLTask"
+                 classpathref="axis2.classpath"/>
+        <java2wsdl className="samples.quickstart.service.pojo.StockQuoteService"
+                   outputLocation="${build.dir}">
+            <classpath>
+                <pathelement path="${axis2.classpath}"/>
+                <pathelement location="${build.dir}/classes"/>
+            </classpath>
+        </java2wsdl>
+    </target>
+
+    <target name="generate.service" depends="compile.service">
+        <!--aar them up -->
+        <copy toDir="${build.dir}/classes" failonerror="false">
+            <fileset dir="${basedir}/resources">
+                <include name="**/*.xml"/>
+            </fileset>
+        </copy>
+        <jar destfile="${build.dir}/StockQuoteService.aar">
+            <fileset excludes="**/Test.class" dir="${build.dir}/classes"/>
+        </jar>
+    </target>
+
+    <target name="clean">
+        <delete dir="${build.dir}"/>
+    </target>
+</project>

Added: webservices/axis2/branches/java/1_1/modules/samples/quickstart/resources/META-INF/services.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstart/resources/META-INF/services.xml?view=auto&rev=473643
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstart/resources/META-INF/services.xml (added)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstart/resources/META-INF/services.xml Fri Nov 10 21:32:17 2006
@@ -0,0 +1,12 @@
+<service name="StockQuoteService" scope="application">
+    <description>
+        Stock Quote Service
+    </description>
+    <messageReceivers>
+        <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
+                         class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
+        <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
+                         class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
+    </messageReceivers>
+    <parameter name="ServiceClass">samples.quickstart.service.pojo.StockQuoteService</parameter>
+</service>

Added: webservices/axis2/branches/java/1_1/modules/samples/quickstart/src/samples/quickstart/service/pojo/StockQuoteService.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstart/src/samples/quickstart/service/pojo/StockQuoteService.java?view=auto&rev=473643
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstart/src/samples/quickstart/service/pojo/StockQuoteService.java (added)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstart/src/samples/quickstart/service/pojo/StockQuoteService.java Fri Nov 10 21:32:17 2006
@@ -0,0 +1,19 @@
+package samples.quickstart.service.pojo;
+
+import java.util.HashMap;
+
+public class StockQuoteService {
+    private HashMap map = new HashMap();
+
+    public double getPrice(String symbol) {
+        Double price = (Double) map.get(symbol);
+        if(price != null){
+            return price.doubleValue();
+        }
+        return 42.00;
+    }
+
+    public void update(String symbol, double price) {
+        map.put(symbol, new Double(price));
+    }
+}

Added: webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/build.xml?view=auto&rev=473643
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/build.xml (added)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/build.xml Fri Nov 10 21:32:17 2006
@@ -0,0 +1,77 @@
+<project basedir="." default="generate.all">
+
+    <property environment="env"/>
+    <property name="AXIS2_HOME" value="${env.AXIS2_HOME}"/>
+
+    <property name="build.dir" value="build"/>
+
+    <path id="axis2.classpath">
+        <fileset dir="${AXIS2_HOME}/lib">
+            <include name="*.jar"/>
+        </fileset>
+    </path>
+    <path id="client.class.path">
+        <fileset dir="${AXIS2_HOME}/lib">
+            <include name="*.jar" />
+        </fileset>
+        <fileset dir="${build.dir}/client/build/lib" >
+            <include name="*.jar" />
+        </fileset>
+    </path>
+
+    <target name="init">
+        <delete dir="${build.dir}"/>
+        <mkdir dir="${build.dir}"/>
+    </target>
+
+    <target name="generate.service" depends="init">
+        <taskdef name="wsdl2java"
+                 classname="org.apache.axis2.tool.ant.AntCodegenTask"
+                 classpathref="axis2.classpath"/>
+        <wsdl2java wsdlFilename="${basedir}/resources/META-INF/StockQuoteService.wsdl"
+                   output="${build.dir}/service"
+                   packageName="samples.quickstart.service.adb"
+                   language="java"
+                   databindingName="adb"
+                   synconly="true"
+                   serverside="true"
+                   serverSideInterface="true"
+                   namespaceToPackages="http://StockQuoteService/xsd=samples.quickstart.service.adb.xsd"
+                   generateservicexml="true"/>
+        <copy file="${basedir}/src/samples/quickstart/service/adb/StockQuoteServiceSkeleton.java"
+              toDir="${build.dir}/service/src/samples/quickstart/service/adb/"
+              overwrite="yes">    
+        </copy>
+        <ant dir="${build.dir}/service"/>
+    </target>
+
+    <target name="generate.client" depends="init">
+        <taskdef name="wsdl2java"
+                 classname="org.apache.axis2.tool.ant.AntCodegenTask"
+                 classpathref="axis2.classpath"/>
+        <wsdl2java wsdlFilename="${basedir}/resources/META-INF/StockQuoteService.wsdl"
+                   output="${build.dir}/client"
+                   packageName="samples.quickstart.service.adb"
+                   databindingName="adb"
+                   namespaceToPackages="http://StockQuoteService/xsd=samples.quickstart.service.adb.xsd"
+                   language="java"
+                   synconly="true"/>
+        <copy file="${basedir}/src/samples/quickstart/clients/ADBClient.java"
+              toDir="${build.dir}/client/src/samples/quickstart/clients/"
+              overwrite="yes">
+        </copy>
+        <ant dir="${build.dir}/client"/>
+    </target>
+
+    <target name="generate.all" depends="generate.service, generate.client"/>
+
+    <target name="run.client" depends="generate.client">
+        <java classname="samples.quickstart.clients.ADBClient">
+            <classpath refid="client.class.path" />
+        </java>
+    </target>
+
+    <target name="clean">
+        <delete dir="${build.dir}"/>
+    </target>
+</project>

Added: webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/resources/META-INF/StockQuoteService.wsdl
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/resources/META-INF/StockQuoteService.wsdl?view=auto&rev=473643
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/resources/META-INF/StockQuoteService.wsdl (added)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/resources/META-INF/StockQuoteService.wsdl Fri Nov 10 21:32:17 2006
@@ -0,0 +1,24 @@
+<wsdl:definitions xmlns:axis2="http://StockQuoteService" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns="http://StockQuoteService/xsd" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://StockQuoteService"><wsdl:types><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://StockQuoteService/xsd">
+<xs:element name="getPrice">
+<xs:complexType>
+<xs:sequence>
+<xs:element name="symbol" nillable="true" type="xs:string" />
+</xs:sequence>
+</xs:complexType>
+</xs:element>
+<xs:element name="getPriceResponse">
+<xs:complexType>
+<xs:sequence>
+<xs:element name="return" nillable="true" type="xs:double" />
+</xs:sequence>
+</xs:complexType>
+</xs:element>
+<xs:element name="update">
+<xs:complexType>
+<xs:sequence>
+<xs:element name="symbol" nillable="true" type="xs:string" />
+<xs:element name="price" nillable="true" type="xs:double" />
+</xs:sequence>
+</xs:complexType>
+</xs:element>
+</xs:schema></wsdl:types><wsdl:message name="getPriceMessage"><wsdl:part name="part1" element="ns:getPrice" /></wsdl:message><wsdl:message name="getPriceResponseMessage"><wsdl:part name="part1" element="ns:getPriceResponse" /></wsdl:message><wsdl:message name="updateMessage"><wsdl:part name="part1" element="ns:update" /></wsdl:message><wsdl:portType name="StockQuoteServicePortType"><wsdl:operation name="getPrice"><wsdl:input message="axis2:getPriceMessage" /><wsdl:output message="axis2:getPriceResponseMessage" /></wsdl:operation><wsdl:operation name="update"><wsdl:input message="axis2:updateMessage" /></wsdl:operation></wsdl:portType><wsdl:binding name="StockQuoteServiceSOAP11Binding" type="axis2:StockQuoteServicePortType"><soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /><wsdl:operation name="getPrice"><soap:operation soapAction="urn:getPrice" style="document" /><wsdl:input><soap:body use="literal" namespace="http://StockQuoteService" /></wsd
 l:input><wsdl:output><soap:body use="literal" namespace="http://StockQuoteService" /></wsdl:output></wsdl:operation><wsdl:operation name="update"><soap:operation soapAction="urn:update" style="document" /><wsdl:input><soap:body use="literal" namespace="http://StockQuoteService" /></wsdl:input></wsdl:operation></wsdl:binding><wsdl:binding name="StockQuoteServiceSOAP12Binding" type="axis2:StockQuoteServicePortType"><soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /><wsdl:operation name="getPrice"><soap12:operation soapAction="urn:getPrice" style="document" /><wsdl:input><soap12:body use="literal" namespace="http://StockQuoteService" /></wsdl:input><wsdl:output><soap12:body use="literal" namespace="http://StockQuoteService" /></wsdl:output></wsdl:operation><wsdl:operation name="update"><soap12:operation soapAction="urn:update" style="document" /><wsdl:input><soap12:body use="literal" namespace="http://StockQuoteService" /></wsdl:input></wsdl:ope
 ration></wsdl:binding><wsdl:service name="StockQuoteService"><wsdl:port name="StockQuoteServiceSOAP11port" binding="axis2:StockQuoteServiceSOAP11Binding"><soap:address location="http://localhost:8080/axis2/services/StockQuoteService" /></wsdl:port><wsdl:port name="StockQuoteServiceSOAP12port" binding="axis2:StockQuoteServiceSOAP12Binding"><soap12:address location="http://localhost:8080/axis2/services/StockQuoteService" /></wsdl:port></wsdl:service></wsdl:definitions>
\ No newline at end of file

Added: webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/src/samples/quickstart/clients/ADBClient.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/src/samples/quickstart/clients/ADBClient.java?view=auto&rev=473643
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/src/samples/quickstart/clients/ADBClient.java (added)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/src/samples/quickstart/clients/ADBClient.java Fri Nov 10 21:32:17 2006
@@ -0,0 +1,52 @@
+package samples.quickstart.clients;
+
+import samples.quickstart.service.adb.StockQuoteServiceStub;
+public class ADBClient{
+    public static void main(java.lang.String args[]){
+        try{
+            StockQuoteServiceStub stub =
+                new StockQuoteServiceStub
+                ("http://localhost:8080/axis2/services/StockQuoteService");
+
+            getPrice(stub);
+            update(stub);
+
+        } catch(Exception e){
+            e.printStackTrace();
+            System.err.println("\n\n\n");
+        }
+    }
+
+    /* fire and forget */
+    public static void update(StockQuoteServiceStub stub){
+        try{
+            StockQuoteServiceStub.Update req = new StockQuoteServiceStub.Update();
+            req.setSymbol ("ABC");
+            req.setPrice (42.35);
+
+            stub.update(req);
+            System.err.println("done");
+        } catch(Exception e){
+            e.printStackTrace();
+            System.err.println("\n\n\n");
+        }
+    }
+
+    /* two way call/receive */
+    public static void getPrice(StockQuoteServiceStub stub){
+        try{
+            StockQuoteServiceStub.GetPrice req = new StockQuoteServiceStub.GetPrice();
+
+            req.setSymbol("ABC");
+
+            StockQuoteServiceStub.GetPriceResponse res =
+                stub.getPrice(req);
+
+            System.err.println(res.get_return());
+        } catch(Exception e){
+            e.printStackTrace();
+            System.err.println("\n\n\n");
+        }
+    }
+
+}

Added: webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/src/samples/quickstart/service/adb/StockQuoteServiceSkeleton.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/src/samples/quickstart/service/adb/StockQuoteServiceSkeleton.java?view=auto&rev=473643
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/src/samples/quickstart/service/adb/StockQuoteServiceSkeleton.java (added)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/src/samples/quickstart/service/adb/StockQuoteServiceSkeleton.java Fri Nov 10 21:32:17 2006
@@ -0,0 +1,25 @@
+package samples.quickstart.service.adb;
+import samples.quickstart.service.adb.xsd.GetPriceResponse;
+import samples.quickstart.service.adb.xsd.Update;
+import samples.quickstart.service.adb.xsd.GetPrice;
+
+import java.util.HashMap;
+public class StockQuoteServiceSkeleton {
+    private HashMap map = new HashMap();
+
+    public void update(Update param0) {
+        map.put(param0.getSymbol(), new Double(param0.getPrice()));
+    }
+
+    public GetPriceResponse getPrice(GetPrice param1) {
+        Double price = (Double) map.get(param1.getSymbol());
+        double ret = 42;
+        if(price != null){
+            ret = price.doubleValue();
+        }
+        GetPriceResponse res =
+                new GetPriceResponse();
+        res.set_return(ret);
+        return res;
+    }
+}

Added: webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/build.xml?view=auto&rev=473643
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/build.xml (added)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/build.xml Fri Nov 10 21:32:17 2006
@@ -0,0 +1,56 @@
+<project basedir="." default="generate.service">
+
+    <property environment="env"/>
+    <property name="AXIS2_HOME" value="${env.AXIS2_HOME}"/>
+
+    <property name="build.dir" value="build"/>
+
+    <path id="axis2.classpath">
+        <fileset dir="${AXIS2_HOME}/lib">
+            <include name="*.jar"/>
+        </fileset>
+    </path>
+	<path id="client.class.path">
+		<fileset dir="${AXIS2_HOME}/lib">
+			<include name="*.jar" />
+		</fileset>
+		<pathelement location="${build.dir}/classes" />
+	</path>
+
+    <target name="compile">
+        <delete dir="${build.dir}"/>
+        <mkdir dir="${build.dir}"/>
+        <mkdir dir="${build.dir}/classes"/>
+
+        <!--First let's compile the classes-->
+        <javac debug="on" 
+               fork="true"
+               destdir="${build.dir}/classes" 
+               srcdir="${basedir}/src"
+               classpathref="axis2.classpath">
+        </javac>
+    </target>
+
+    <target name="generate.service" depends="compile">
+        <!--aar them up -->
+        <copy toDir="${build.dir}/classes" failonerror="false">
+            <fileset dir="${basedir}/resources">
+                <include name="**/*.xml"/>
+                <include name="**/*.wsdl"/>
+            </fileset>
+        </copy>
+        <jar destfile="${build.dir}/StockQuoteService.aar">
+            <fileset excludes="**/Test.class" dir="${build.dir}/classes"/>
+        </jar>
+    </target>
+
+    <target name="run.client" depends="compile">
+        <java classname="samples.quickstart.clients.AXIOMClient">
+            <classpath refid="client.class.path" />
+        </java>
+    </target>
+
+    <target name="clean">
+        <delete dir="${build.dir}"/>
+    </target>
+</project>

Added: webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/resources/META-INF/StockQuoteService.wsdl
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/resources/META-INF/StockQuoteService.wsdl?view=auto&rev=473643
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/resources/META-INF/StockQuoteService.wsdl (added)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/resources/META-INF/StockQuoteService.wsdl Fri Nov 10 21:32:17 2006
@@ -0,0 +1,24 @@
+<wsdl:definitions xmlns:axis2="http://StockQuoteService" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns="http://StockQuoteService/xsd" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://StockQuoteService"><wsdl:types><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://StockQuoteService/xsd">
+<xs:element name="getPrice">
+<xs:complexType>
+<xs:sequence>
+<xs:element name="symbol" nillable="true" type="xs:string" />
+</xs:sequence>
+</xs:complexType>
+</xs:element>
+<xs:element name="getPriceResponse">
+<xs:complexType>
+<xs:sequence>
+<xs:element name="return" nillable="true" type="xs:double" />
+</xs:sequence>
+</xs:complexType>
+</xs:element>
+<xs:element name="update">
+<xs:complexType>
+<xs:sequence>
+<xs:element name="symbol" nillable="true" type="xs:string" />
+<xs:element name="price" nillable="true" type="xs:double" />
+</xs:sequence>
+</xs:complexType>
+</xs:element>
+</xs:schema></wsdl:types><wsdl:message name="getPriceMessage"><wsdl:part name="part1" element="ns:getPrice" /></wsdl:message><wsdl:message name="getPriceResponseMessage"><wsdl:part name="part1" element="ns:getPriceResponse" /></wsdl:message><wsdl:message name="updateMessage"><wsdl:part name="part1" element="ns:update" /></wsdl:message><wsdl:portType name="StockQuoteServicePortType"><wsdl:operation name="getPrice"><wsdl:input message="axis2:getPriceMessage" /><wsdl:output message="axis2:getPriceResponseMessage" /></wsdl:operation><wsdl:operation name="update"><wsdl:input message="axis2:updateMessage" /></wsdl:operation></wsdl:portType><wsdl:binding name="StockQuoteServiceSOAP11Binding" type="axis2:StockQuoteServicePortType"><soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /><wsdl:operation name="getPrice"><soap:operation soapAction="urn:getPrice" style="document" /><wsdl:input><soap:body use="literal" namespace="http://StockQuoteService" /></wsd
 l:input><wsdl:output><soap:body use="literal" namespace="http://StockQuoteService" /></wsdl:output></wsdl:operation><wsdl:operation name="update"><soap:operation soapAction="urn:update" style="document" /><wsdl:input><soap:body use="literal" namespace="http://StockQuoteService" /></wsdl:input></wsdl:operation></wsdl:binding><wsdl:binding name="StockQuoteServiceSOAP12Binding" type="axis2:StockQuoteServicePortType"><soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /><wsdl:operation name="getPrice"><soap12:operation soapAction="urn:getPrice" style="document" /><wsdl:input><soap12:body use="literal" namespace="http://StockQuoteService" /></wsdl:input><wsdl:output><soap12:body use="literal" namespace="http://StockQuoteService" /></wsdl:output></wsdl:operation><wsdl:operation name="update"><soap12:operation soapAction="urn:update" style="document" /><wsdl:input><soap12:body use="literal" namespace="http://StockQuoteService" /></wsdl:input></wsdl:ope
 ration></wsdl:binding><wsdl:service name="StockQuoteService"><wsdl:port name="StockQuoteServiceSOAP11port" binding="axis2:StockQuoteServiceSOAP11Binding"><soap:address location="http://localhost:8080/axis2/services/StockQuoteService" /></wsdl:port><wsdl:port name="StockQuoteServiceSOAP12port" binding="axis2:StockQuoteServiceSOAP12Binding"><soap12:address location="http://localhost:8080/axis2/services/StockQuoteService" /></wsdl:port></wsdl:service></wsdl:definitions>
\ No newline at end of file

Added: webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/resources/META-INF/services.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/resources/META-INF/services.xml?view=auto&rev=473643
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/resources/META-INF/services.xml (added)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/resources/META-INF/services.xml Fri Nov 10 21:32:17 2006
@@ -0,0 +1,12 @@
+<service name="StockQuoteService" scope="application">
+    <description>
+        Stock Quote Service
+    </description>
+    <operation name="getPrice">
+        <messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
+    </operation>
+    <operation name="update">
+        <messageReceiver class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/>
+    </operation>
+    <parameter name="ServiceClass">samples.quickstart.service.axiom.StockQuoteService</parameter>
+</service>

Added: webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/src/samples/quickstart/clients/AXIOMClient.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/src/samples/quickstart/clients/AXIOMClient.java?view=auto&rev=473643
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/src/samples/quickstart/clients/AXIOMClient.java (added)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/src/samples/quickstart/clients/AXIOMClient.java Fri Nov 10 21:32:17 2006
@@ -0,0 +1,71 @@
+package samples.quickstart.clients;
+
+import org.apache.axiom.om.OMAbstractFactory;
+import org.apache.axiom.om.OMElement;
+import org.apache.axiom.om.OMFactory;
+import org.apache.axiom.om.OMNamespace;
+import org.apache.axis2.Constants;
+import org.apache.axis2.addressing.EndpointReference;
+import org.apache.axis2.client.Options;
+import org.apache.axis2.client.ServiceClient;
+
+public class AXIOMClient {
+
+    private static EndpointReference targetEPR = 
+        new EndpointReference(
+                              "http://localhost:8080/axis2/services/StockQuoteService");
+
+    public static OMElement getPricePayload(String symbol) {
+        OMFactory fac = OMAbstractFactory.getOMFactory();
+        OMNamespace omNs = fac.createOMNamespace(
+                                                 "http://pojo.service.quickstart.samples/xsd", "tns");
+
+        OMElement method = fac.createOMElement("getPrice", omNs);
+        OMElement value = fac.createOMElement("symbol", omNs);
+        value.addChild(fac.createOMText(value, symbol));
+        method.addChild(value);
+        return method;
+    }
+
+    public static OMElement updatePayload(String symbol, double price) {
+        OMFactory fac = OMAbstractFactory.getOMFactory();
+        OMNamespace omNs = fac.createOMNamespace(
+                                                 "http://pojo.service.quickstart.samples/xsd", "tns");
+
+        OMElement method = fac.createOMElement("update", omNs);
+
+        OMElement value1 = fac.createOMElement("symbol", omNs);
+        value1.addChild(fac.createOMText(value1, symbol));
+        method.addChild(value1);
+
+        OMElement value2 = fac.createOMElement("price", omNs);
+        value2.addChild(fac.createOMText(value2,
+                                         Double.toString(price)));
+        method.addChild(value2);
+        return method;
+    }
+
+    public static void main(String[] args) {
+        try {
+            OMElement getPricePayload = getPricePayload("WSO");
+            OMElement updatePayload = updatePayload("WSO", 123.42);
+            Options options = new Options();
+            options.setTo(targetEPR);
+            options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
+
+            ServiceClient sender = new ServiceClient();
+            sender.setOptions(options);
+
+            sender.fireAndForget(updatePayload);
+            System.err.println("done");
+            OMElement result = sender.sendReceive(getPricePayload);
+
+            String response = result.getFirstElement().getText();
+            System.err.println("Current price of WSO: " + response);
+
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+    }
+    
+}

Added: webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/src/samples/quickstart/service/axiom/StockQuoteService.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/src/samples/quickstart/service/axiom/StockQuoteService.java?view=auto&rev=473643
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/src/samples/quickstart/service/axiom/StockQuoteService.java (added)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/src/samples/quickstart/service/axiom/StockQuoteService.java Fri Nov 10 21:32:17 2006
@@ -0,0 +1,47 @@
+package samples.quickstart.service.axiom;
+
+import javax.xml.stream.XMLStreamException;
+import org.apache.axiom.om.OMAbstractFactory;
+import org.apache.axiom.om.OMElement;
+import org.apache.axiom.om.OMFactory;
+import org.apache.axiom.om.OMNamespace;
+
+import java.util.HashMap;
+public class StockQuoteService {
+    private HashMap map = new HashMap();
+
+    public OMElement getPrice(OMElement element) throws XMLStreamException {
+        element.build();
+        element.detach();
+
+        OMElement symbolElement = element.getFirstElement();
+        String symbol = symbolElement.getText();
+
+        String returnText = "42";
+        Double price = (Double) map.get(symbol);
+        if(price != null){
+            returnText  = "" + price.doubleValue();
+        }
+        OMFactory fac = OMAbstractFactory.getOMFactory();
+        OMNamespace omNs =
+            fac.createOMNamespace("http://quickstart.mypackage/xsd", "tns");
+        OMElement method = fac.createOMElement("getPriceResponse", omNs);
+        OMElement value = fac.createOMElement("price", omNs);
+        value.addChild(fac.createOMText(value, returnText));
+        method.addChild(value);
+        return method;
+    }
+
+    public void update(OMElement element) throws XMLStreamException {
+        element.build();
+        element.detach();
+
+        OMElement symbolElement = element.getFirstElement();
+        String symbol = symbolElement.getText();
+
+        OMElement priceElement = (OMElement)symbolElement.getNextOMSibling();
+        String price = priceElement.getText();
+
+        map.put(symbol, new Double(price));
+    }
+}

Added: webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/build.xml?view=auto&rev=473643
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/build.xml (added)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/build.xml Fri Nov 10 21:32:17 2006
@@ -0,0 +1,77 @@
+<project basedir="." default="generate.all">
+
+    <property environment="env"/>
+    <property name="AXIS2_HOME" value="${env.AXIS2_HOME}"/>
+
+    <property name="build.dir" value="build"/>
+
+    <path id="axis2.classpath">
+        <fileset dir="${AXIS2_HOME}/lib">
+            <include name="*.jar"/>
+        </fileset>
+    </path>
+    <path id="client.class.path">
+        <fileset dir="${AXIS2_HOME}/lib">
+            <include name="*.jar" />
+        </fileset>
+        <fileset dir="${build.dir}/client/build/lib" >
+            <include name="*.jar" />
+        </fileset>
+    </path>
+
+    <target name="init">
+        <delete dir="${build.dir}"/>
+        <mkdir dir="${build.dir}"/>
+    </target>
+
+    <target name="generate.service" depends="init">
+        <taskdef name="wsdl2java"
+                 classname="org.apache.axis2.tool.ant.AntCodegenTask"
+                 classpathref="axis2.classpath"/>
+        <wsdl2java wsdlFilename="${basedir}/resources/META-INF/StockQuoteService.wsdl"
+                   output="${build.dir}/service"
+                   packageName="samples.quickstart.service.xmlbeans"
+                   language="java"
+                   databindingName="xmlbeans"
+                   synconly="true"
+                   serverside="true"
+                   serverSideInterface="true"
+                   namespaceToPackages="http://StockQuoteService/xsd=samples.quickstart.service.xmlbeans.xsd"
+                   generateservicexml="true"/>
+        <copy file="${basedir}/src/samples/quickstart/service/xmlbeans/StockQuoteServiceSkeleton.java"
+              toDir="${build.dir}/service/src/samples/quickstart/service/xmlbeans/"
+              overwrite="yes">    
+        </copy>
+        <ant dir="${build.dir}/service"/>
+    </target>
+
+    <target name="generate.client" depends="init">
+        <taskdef name="wsdl2java"
+                 classname="org.apache.axis2.tool.ant.AntCodegenTask"
+                 classpathref="axis2.classpath"/>
+        <wsdl2java wsdlFilename="${basedir}/resources/META-INF/StockQuoteService.wsdl"
+                   output="${build.dir}/client"
+                   packageName="samples.quickstart.service.xmlbeans"
+                   databindingName="xmlbeans"
+                   namespaceToPackages="http://StockQuoteService/xsd=samples.quickstart.service.xmlbeans.xsd"
+                   language="java"
+                   synconly="true"/>
+        <copy file="${basedir}/src/samples/quickstart/clients/XMLBEANSClient.java"
+              toDir="${build.dir}/client/src/samples/quickstart/clients/"
+              overwrite="yes">
+        </copy>
+        <ant dir="${build.dir}/client"/>
+    </target>
+
+    <target name="generate.all" depends="generate.service, generate.client"/>
+
+    <target name="run.client" depends="generate.client">
+        <java classname="samples.quickstart.clients.XMLBEANSClient">
+            <classpath refid="client.class.path" />
+        </java>
+    </target>
+
+    <target name="clean">
+        <delete dir="${build.dir}"/>
+    </target>
+</project>

Added: webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/resources/META-INF/StockQuoteService.wsdl
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/resources/META-INF/StockQuoteService.wsdl?view=auto&rev=473643
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/resources/META-INF/StockQuoteService.wsdl (added)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/resources/META-INF/StockQuoteService.wsdl Fri Nov 10 21:32:17 2006
@@ -0,0 +1,24 @@
+<wsdl:definitions xmlns:axis2="http://StockQuoteService" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns="http://StockQuoteService/xsd" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://StockQuoteService"><wsdl:types><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://StockQuoteService/xsd">
+<xs:element name="getPrice">
+<xs:complexType>
+<xs:sequence>
+<xs:element name="symbol" nillable="true" type="xs:string" />
+</xs:sequence>
+</xs:complexType>
+</xs:element>
+<xs:element name="getPriceResponse">
+<xs:complexType>
+<xs:sequence>
+<xs:element name="return" nillable="true" type="xs:double" />
+</xs:sequence>
+</xs:complexType>
+</xs:element>
+<xs:element name="update">
+<xs:complexType>
+<xs:sequence>
+<xs:element name="symbol" nillable="true" type="xs:string" />
+<xs:element name="price" nillable="true" type="xs:double" />
+</xs:sequence>
+</xs:complexType>
+</xs:element>
+</xs:schema></wsdl:types><wsdl:message name="getPriceMessage"><wsdl:part name="part1" element="ns:getPrice" /></wsdl:message><wsdl:message name="getPriceResponseMessage"><wsdl:part name="part1" element="ns:getPriceResponse" /></wsdl:message><wsdl:message name="updateMessage"><wsdl:part name="part1" element="ns:update" /></wsdl:message><wsdl:portType name="StockQuoteServicePortType"><wsdl:operation name="getPrice"><wsdl:input message="axis2:getPriceMessage" /><wsdl:output message="axis2:getPriceResponseMessage" /></wsdl:operation><wsdl:operation name="update"><wsdl:input message="axis2:updateMessage" /></wsdl:operation></wsdl:portType><wsdl:binding name="StockQuoteServiceSOAP11Binding" type="axis2:StockQuoteServicePortType"><soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /><wsdl:operation name="getPrice"><soap:operation soapAction="urn:getPrice" style="document" /><wsdl:input><soap:body use="literal" namespace="http://StockQuoteService" /></wsd
 l:input><wsdl:output><soap:body use="literal" namespace="http://StockQuoteService" /></wsdl:output></wsdl:operation><wsdl:operation name="update"><soap:operation soapAction="urn:update" style="document" /><wsdl:input><soap:body use="literal" namespace="http://StockQuoteService" /></wsdl:input></wsdl:operation></wsdl:binding><wsdl:binding name="StockQuoteServiceSOAP12Binding" type="axis2:StockQuoteServicePortType"><soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /><wsdl:operation name="getPrice"><soap12:operation soapAction="urn:getPrice" style="document" /><wsdl:input><soap12:body use="literal" namespace="http://StockQuoteService" /></wsdl:input><wsdl:output><soap12:body use="literal" namespace="http://StockQuoteService" /></wsdl:output></wsdl:operation><wsdl:operation name="update"><soap12:operation soapAction="urn:update" style="document" /><wsdl:input><soap12:body use="literal" namespace="http://StockQuoteService" /></wsdl:input></wsdl:ope
 ration></wsdl:binding><wsdl:service name="StockQuoteService"><wsdl:port name="StockQuoteServiceSOAP11port" binding="axis2:StockQuoteServiceSOAP11Binding"><soap:address location="http://localhost:8080/axis2/services/StockQuoteService" /></wsdl:port><wsdl:port name="StockQuoteServiceSOAP12port" binding="axis2:StockQuoteServiceSOAP12Binding"><soap12:address location="http://localhost:8080/axis2/services/StockQuoteService" /></wsdl:port></wsdl:service></wsdl:definitions>
\ No newline at end of file

Added: webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/src/samples/quickstart/clients/XMLBEANSClient.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/src/samples/quickstart/clients/XMLBEANSClient.java?view=auto&rev=473643
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/src/samples/quickstart/clients/XMLBEANSClient.java (added)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/src/samples/quickstart/clients/XMLBEANSClient.java Fri Nov 10 21:32:17 2006
@@ -0,0 +1,57 @@
+package samples.quickstart.clients;
+
+import samples.quickstart.service.xmlbeans.StockQuoteServiceStub;
+import samples.quickstart.service.xmlbeans.xsd.GetPriceDocument;
+import samples.quickstart.service.xmlbeans.xsd.GetPriceResponseDocument;
+import samples.quickstart.service.xmlbeans.xsd.UpdateDocument;
+
+public class XMLBEANSClient{
+
+    public static void main(java.lang.String args[]){
+        try{
+            StockQuoteServiceStub stub =
+                new StockQuoteServiceStub
+                ("http://localhost:8080/axis2/services/StockQuoteService");
+
+            getPrice(stub);
+            update(stub);
+
+        } catch(Exception e){
+            e.printStackTrace();
+            System.err.println("\n\n\n");
+        }
+    }
+
+    /* fire and forget */
+    public static void update(StockQuoteServiceStub stub){
+        try{
+            UpdateDocument reqDoc = UpdateDocument.Factory.newInstance();
+            UpdateDocument.Update req = reqDoc.addNewUpdate();
+            req.setSymbol ("ABC");
+            req.setPrice (42.32);
+
+            stub.update(reqDoc);
+            System.err.println("done");
+        } catch(Exception e){
+            e.printStackTrace();
+            System.err.println("\n\n\n");
+        }
+    }
+
+    /* two way call/receive */
+    public static void getPrice(StockQuoteServiceStub stub){
+        try{
+            GetPriceDocument reqDoc = GetPriceDocument.Factory.newInstance();
+            GetPriceDocument.GetPrice req = reqDoc.addNewGetPrice();
+            req.setSymbol("ABC");
+
+            GetPriceResponseDocument res =
+                stub.getPrice(reqDoc);
+
+            System.err.println(res.getGetPriceResponse().getReturn());
+        } catch(Exception e){
+            e.printStackTrace();
+            System.err.println("\n\n\n");
+        }
+    }
+}

Added: webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/src/samples/quickstart/service/xmlbeans/StockQuoteServiceSkeleton.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/src/samples/quickstart/service/xmlbeans/StockQuoteServiceSkeleton.java?view=auto&rev=473643
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/src/samples/quickstart/service/xmlbeans/StockQuoteServiceSkeleton.java (added)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/src/samples/quickstart/service/xmlbeans/StockQuoteServiceSkeleton.java Fri Nov 10 21:32:17 2006
@@ -0,0 +1,39 @@
+/**
+ * StockQuoteServiceSkeleton.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis2 version: 1.1-RC2 Nov 02, 2006 (02:37:50 LKT)
+ */
+package samples.quickstart.service.xmlbeans;
+import samples.quickstart.service.xmlbeans.xsd.GetPriceDocument;
+import samples.quickstart.service.xmlbeans.xsd.GetPriceResponseDocument;
+import samples.quickstart.service.xmlbeans.xsd.UpdateDocument;
+
+import java.util.HashMap;
+/**
+ * StockQuoteServiceSkeleton java skeleton for the axisService
+ */
+public class StockQuoteServiceSkeleton implements StockQuoteServiceSkeletonInterface {
+
+    private HashMap map = new HashMap();
+
+    public void update(UpdateDocument param0) {
+        map.put(param0.getUpdate().getSymbol(), new Double(param0.getUpdate().getPrice()));
+    }
+
+    public GetPriceResponseDocument getPrice(GetPriceDocument param1) {
+        Double price = (Double) map.get(param1.getGetPrice().getSymbol());
+        double ret = 42;
+        if(price != null){
+            ret = price.doubleValue();
+        }
+        System.err.println();
+        GetPriceResponseDocument resDoc =
+                GetPriceResponseDocument.Factory.newInstance();
+        GetPriceResponseDocument.GetPriceResponse res =
+                resDoc.addNewGetPriceResponse();
+        res.setReturn(ret);
+        return resDoc;
+    }
+}
+    
\ No newline at end of file



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message