axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dsosno...@apache.org
Subject svn commit: r474044 - in /webservices/axis2/branches/java/1_1/modules/samples/quickstartjibx/src/samples/quickstart: clients/JiBXClient.java service/jibx/StockQuoteServiceSkeleton.java
Date Sun, 12 Nov 2006 21:00:51 GMT
Author: dsosnoski
Date: Sun Nov 12 13:00:51 2006
New Revision: 474044

URL: http://svn.apache.org/viewvc?view=rev&rev=474044
Log:
Make JiBX quickstart example consistent with other ones

Modified:
    webservices/axis2/branches/java/1_1/modules/samples/quickstartjibx/src/samples/quickstart/clients/JiBXClient.java
    webservices/axis2/branches/java/1_1/modules/samples/quickstartjibx/src/samples/quickstart/service/jibx/StockQuoteServiceSkeleton.java

Modified: webservices/axis2/branches/java/1_1/modules/samples/quickstartjibx/src/samples/quickstart/clients/JiBXClient.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstartjibx/src/samples/quickstart/clients/JiBXClient.java?view=diff&rev=474044&r1=474043&r2=474044
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstartjibx/src/samples/quickstart/clients/JiBXClient.java
(original)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstartjibx/src/samples/quickstart/clients/JiBXClient.java
Sun Nov 12 13:00:51 2006
@@ -1,6 +1,7 @@
 package samples.quickstart.clients;
 
 import samples.quickstart.service.jibx.StockQuoteServiceStub;
+
 public class JiBXClient{
     public static void main(java.lang.String args[]){
         try{
@@ -10,7 +11,6 @@
 
             getPrice(stub);
             update(stub);
-            getPrice(stub);
 
         } catch(Exception e){
             e.printStackTrace();

Modified: webservices/axis2/branches/java/1_1/modules/samples/quickstartjibx/src/samples/quickstart/service/jibx/StockQuoteServiceSkeleton.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstartjibx/src/samples/quickstart/service/jibx/StockQuoteServiceSkeleton.java?view=diff&rev=474044&r1=474043&r2=474044
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstartjibx/src/samples/quickstart/service/jibx/StockQuoteServiceSkeleton.java
(original)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstartjibx/src/samples/quickstart/service/jibx/StockQuoteServiceSkeleton.java
Sun Nov 12 13:00:51 2006
@@ -1,6 +1,7 @@
 package samples.quickstart.service.jibx;
 
 import java.util.HashMap;
+
 public class StockQuoteServiceSkeleton implements StockQuoteServiceSkeletonInterface {
     private HashMap map = new HashMap();
 
@@ -9,10 +10,10 @@
     }
 
     public Double getPrice(String symbol) {
-        if (symbol == null) {
-            return null;
-        } else {
-            return (Double) map.get(symbol);
+        Double ret = (Double) map.get(symbol);
+        if (ret == null) {
+            ret = new Double(42.0);
         }
+        return ret;
     }
 }



---------------------------------------------------------------------
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