axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chinth...@apache.org
Subject svn commit: r232781 - in /webservices/axis/trunk/java/modules/samples/src/sample/google/search: AsynchronousClient.java ClientUtil.java GUIHandler.java
Date Mon, 15 Aug 2005 09:49:51 GMT
Author: chinthaka
Date: Mon Aug 15 02:48:39 2005
New Revision: 232781

URL: http://svn.apache.org/viewcvs?rev=232781&view=rev
Log:
Fixing some bugs by Gayan

Modified:
    webservices/axis/trunk/java/modules/samples/src/sample/google/search/AsynchronousClient.java
    webservices/axis/trunk/java/modules/samples/src/sample/google/search/ClientUtil.java
    webservices/axis/trunk/java/modules/samples/src/sample/google/search/GUIHandler.java

Modified: webservices/axis/trunk/java/modules/samples/src/sample/google/search/AsynchronousClient.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/sample/google/search/AsynchronousClient.java?rev=232781&r1=232780&r2=232781&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/sample/google/search/AsynchronousClient.java
(original)
+++ webservices/axis/trunk/java/modules/samples/src/sample/google/search/AsynchronousClient.java
Mon Aug 15 02:48:39 2005
@@ -7,7 +7,6 @@
 import org.apache.axis2.context.MessageContext;
 import org.apache.axis2.description.OperationDescription;
 import sample.google.common.util.PropertyLoader;
-
 import javax.xml.namespace.QName;
 import java.net.MalformedURLException;
 import java.net.URL;
@@ -28,7 +27,6 @@
 * limitations under the License.
 */
 
-
 public class AsynchronousClient {
 
     /**
@@ -84,7 +82,7 @@
         Call call = new Call();
         URL url = null;
         try {
-            url = new URL("http", "api.google.com", "/search/beta2");
+            url = new URL("http", "api.google.com","/search/beta2");
             //  url = new URL("http://127.0.0.1:8080/axis2/services/axisversion/viewVersion");
         } catch (MalformedURLException e) {
             e.printStackTrace();

Modified: webservices/axis/trunk/java/modules/samples/src/sample/google/search/ClientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/sample/google/search/ClientUtil.java?rev=232781&r1=232780&r2=232781&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/sample/google/search/ClientUtil.java (original)
+++ webservices/axis/trunk/java/modules/samples/src/sample/google/search/ClientUtil.java Mon
Aug 15 02:48:39 2005
@@ -57,12 +57,12 @@
         SOAPFactory omFactory = OMAbstractFactory.getSOAP11Factory();
         SOAPEnvelope envelope = omFactory.getDefaultEnvelope();
         envelope.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/",
-                "SOAP-ENV");
+                "soapenv");
         envelope.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/",
                 "SOAP-ENC");
-        envelope.declareNamespace("http://www.w3.org/1999/XMLSchema-instance/",
+        envelope.declareNamespace("http://www.w3.org/2001/XMLSchema-instance",
                 "xsi");
-        envelope.declareNamespace("http://www.w3.org/1999/XMLSchema",
+        envelope.declareNamespace("http://www.w3.org/2001/XMLSchema",
                 "xsd");
 
         operation =
@@ -70,7 +70,7 @@
                         "urn:GoogleSearch",
                         "ns1");
         envelope.getBody().addChild(operation);
-        operation.addAttribute("SOAP-ENV:encordingStyle",
+        operation.addAttribute("soapenv:encordingStyle",
                 "http://schemas.xmlsoap.org/soap/encoding/", null);
 
         operation.addChild(

Modified: webservices/axis/trunk/java/modules/samples/src/sample/google/search/GUIHandler.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/sample/google/search/GUIHandler.java?rev=232781&r1=232780&r2=232781&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/sample/google/search/GUIHandler.java (original)
+++ webservices/axis/trunk/java/modules/samples/src/sample/google/search/GUIHandler.java Mon
Aug 15 02:48:39 2005
@@ -104,7 +104,7 @@
         settingsMenu.add(maxResultsMenuItem);
         maxResultsMenuItem.setEnabled(true);
         maxResultsMenuItem.setToolTipText(
-                "This feature is currently disabled!");
+                "You can set the maximum number of results per page, Maximum allowable is
10");
 
         JMenu helpMenu = new JMenu("Help");
         JMenuItem mnuItemHelp = new JMenuItem("Show Help");
@@ -353,4 +353,4 @@
             }
         }
     }
-}
\ No newline at end of file
+}



Mime
View raw message