axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdani...@apache.org
Subject svn commit: r210165 [9/20] - in /webservices/axis/trunk/java/modules: addressing/src/org/apache/axis2/handlers/addressing/ addressing/test/org/apache/axis2/handlers/addressing/ addressing/test/org/apache/axis2/handlers/util/ core/src/org/apache/axis2/a...
Date Mon, 11 Jul 2005 17:49:08 GMT
Modified: webservices/axis/trunk/java/modules/samples/src/sample/amazon/search/ClientCallbackHandler.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/sample/amazon/search/ClientCallbackHandler.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/sample/amazon/search/ClientCallbackHandler.java (original)
+++ webservices/axis/trunk/java/modules/samples/src/sample/amazon/search/ClientCallbackHandler.java Mon Jul 11 10:48:55 2005
@@ -65,9 +65,12 @@
      * @param result
      */
     public void onComplete(AsyncResult result) {
-        System.out.println("Responce message received to the ClientCallbackHandler ...");
+        System.out.println(
+                "Responce message received to the ClientCallbackHandler ...");
         try {
-            OMOutput omOutput = new OMOutput(XMLOutputFactory.newInstance().createXMLStreamWriter(System.out));
+            OMOutput omOutput = new OMOutput(
+                    XMLOutputFactory.newInstance().createXMLStreamWriter(
+                            System.out));
             result.getResponseEnvelope().serialize(omOutput);
             omOutput.flush();
         } catch (XMLStreamException e) {
@@ -100,7 +103,8 @@
 
         String opLocalName = operation.getLocalName();
         if (opLocalName.equals("Fault")) {
-            System.out.println("A Fault message recieved, Check your Licence key");
+            System.out.println(
+                    "A Fault message recieved, Check your Licence key");
             strURL =
                     strURL +
                     "A Fault message recieved, Check your Licence key. Else you have reached the " +
@@ -128,41 +132,55 @@
                                     System.out.println("Got Alexa");
                                     elem = elem.getFirstElement(); //elem -> websearch
                                     System.out.println("Should be WebSearch " +
-                                                       elem.getLocalName());
+                                            elem.getLocalName());
                                     iterator2 = elem.getChildren();
                                     while (iterator2.hasNext()) {
                                         node = (OMNode) iterator2.next();
-                                        if (node.getType() == OMNode.ELEMENT_NODE) {
+                                        if (node.getType() ==
+                                                OMNode.ELEMENT_NODE) {
                                             elem = (OMElement) node;
                                             String str3 = elem.getLocalName();
                                             System.out.println(str3);
                                             if (str3.equals("Results")) {
-                                                System.out.println("Got Results");
+                                                System.out.println(
+                                                        "Got Results");
                                                 iterator3 = elem.getChildren();
                                                 while (iterator3.hasNext()) {
-                                                    node = (OMNode) iterator3.next();
-                                                    if (node.getType() == OMNode.ELEMENT_NODE) {
-                                                        elem = (OMElement) node;
+                                                    node =
+                                                            (OMNode) iterator3.next();
+                                                    if (node.getType() ==
+                                                            OMNode.ELEMENT_NODE) {
+                                                        elem =
+                                                                (OMElement) node;
                                                         String str4 = elem.getLocalName();
-                                                        System.out.println(str4);
-                                                        if (str4.equals("Result")) {
-                                                            iterator4 = elem.getChildren();
+                                                        System.out.println(
+                                                                str4);
+                                                        if (str4.equals(
+                                                                "Result")) {
+                                                            iterator4 =
+                                                                    elem.getChildren();
                                                             while (iterator4.hasNext()) {
-                                                                node = (OMNode) iterator4.next();
+                                                                node =
+                                                                        (OMNode) iterator4.next();
                                                                 if (node.getType() ==
                                                                         OMNode.ELEMENT_NODE) {
-                                                                    elem = (OMElement) node;
+                                                                    elem =
+                                                                            (OMElement) node;
                                                                     String str5 = elem.getLocalName();
-                                                                    System.out.println(str5);
-                                                                    if (str5.equals("NavigableUrl")) {
+                                                                    System.out.println(
+                                                                            str5);
+                                                                    if (str5.equals(
+                                                                            "NavigableUrl")) {
                                                                         String txt = elem.getText();
-                                                                        strURL = strURL +
+                                                                        strURL =
+                                                                                strURL +
                                                                                 "<a href= " +
                                                                                 txt +
                                                                                 ">" +
                                                                                 txt +
                                                                                 "</a><br>";
-                                                                        System.out.println(strURL);
+                                                                        System.out.println(
+                                                                                strURL);
                                                                     }
                                                                 }
                                                             }

Modified: webservices/axis/trunk/java/modules/samples/src/sample/amazon/search/ClientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/sample/amazon/search/ClientUtil.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/sample/amazon/search/ClientUtil.java (original)
+++ webservices/axis/trunk/java/modules/samples/src/sample/amazon/search/ClientUtil.java Mon Jul 11 10:48:55 2005
@@ -53,25 +53,37 @@
 
         SOAPFactory omFactory = OMAbstractFactory.getSOAP11Factory();
         SOAPEnvelope reqEnv = omFactory.getDefaultEnvelope();
-        namespace = reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/",
-                                            "SOAP-ENV");
-        namespace = reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/",
-                                            "SOAP-ENC");
-        namespace = reqEnv.declareNamespace("http://www.w3.org/1999/XMLSchema-instance/", "xsi");
-        namespace = reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema", "xsd");
-        namespace = reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/soap/",
-                                            "soap");
+        namespace = reqEnv.declareNamespace(
+                "http://schemas.xmlsoap.org/soap/envelope/",
+                "SOAP-ENV");
+        namespace = reqEnv.declareNamespace(
+                "http://schemas.xmlsoap.org/soap/encoding/",
+                "SOAP-ENC");
+        namespace =
+                reqEnv.declareNamespace(
+                        "http://www.w3.org/1999/XMLSchema-instance/", "xsi");
+        namespace =
+                reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema",
+                        "xsd");
+        namespace = reqEnv.declareNamespace(
+                "http://schemas.xmlsoap.org/wsdl/soap/",
+                "soap");
         namespace = reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/",
-                                            "wsdl");
-        namespace = reqEnv.declareNamespace("http://webservices.amazon.com/AWSAlexa/2005-02-01",
-                                            "tns");
+                "wsdl");
+        namespace = reqEnv.declareNamespace(
+                "http://webservices.amazon.com/AWSAlexa/2005-02-01",
+                "tns");
 
         nulNS = omFactory.createOMNamespace("", "");
 
-        operation = omFactory.createOMElement("Search",
-                                              "http://webservices.amazon.com/AWSAlexa/2005-02-01", "ns1");
+        operation =
+                omFactory.createOMElement("Search",
+                        "http://webservices.amazon.com/AWSAlexa/2005-02-01",
+                        "ns1");
         reqEnv.getBody().addChild(operation);
-        operation.addAttribute("encordingStyle", "http://schemas.xmlsoap.org/soap/encoding/", null);
+        operation.addAttribute("encordingStyle",
+                "http://schemas.xmlsoap.org/soap/encoding/",
+                null);
 
 
         value1 = omFactory.createOMElement("SubscriptionId", nulNS);

Modified: webservices/axis/trunk/java/modules/samples/src/sample/amazon/search/GUIHandler.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/sample/amazon/search/GUIHandler.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/sample/amazon/search/GUIHandler.java (original)
+++ webservices/axis/trunk/java/modules/samples/src/sample/amazon/search/GUIHandler.java Mon Jul 11 10:48:55 2005
@@ -24,7 +24,11 @@
 import java.awt.event.ActionListener;
 import java.awt.event.KeyEvent;
 import java.awt.event.KeyListener;
-import java.io.*;
+import java.io.File;
+import java.io.FileNotFoundException;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.io.OutputStream;
 
 /**
  * Build and desplay the GUI
@@ -91,7 +95,7 @@
         Dimension wndSize = theKit.getScreenSize(); // Get screen size
         // Set the position to screen center and appropriate size
         frame.setBounds(wndSize.width / 6, wndSize.height / 10, // Position
-                        wndSize.width * 3 / 5, wndSize.height * 3 / 4); // Size
+                wndSize.width * 3 / 5, wndSize.height * 3 / 4); // Size
         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
 
         text = new JEditorPane();
@@ -100,14 +104,15 @@
         text.addHyperlinkListener(new LinkFollower());
 
         JScrollPane scroll = new JScrollPane(text, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
-                                             JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
+                JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
         pane.add(scroll);
 
         textBox = new JTextField();
         textBox.addKeyListener(this);
         pane.add(textBox);
 
-        SpringLayout.Constraints textBoxConstraints = layout.getConstraints(textBox);
+        SpringLayout.Constraints textBoxConstraints = layout.getConstraints(
+                textBox);
         xSpring = Spring.constant(0); // Spring we’ll use for X
         ySpring = Spring.constant(0); // Spring we’ll use for Y
         wSpring = Spring.constant(frame.getBounds().width); // Spring we’ll use for width
@@ -117,7 +122,8 @@
         textBoxConstraints.setX(xSpring); // Set the WEST edge constraint
         textBoxConstraints.setY(ySpring);
 
-        SpringLayout.Constraints scrollConstraints = layout.getConstraints(scroll);
+        SpringLayout.Constraints scrollConstraints = layout.getConstraints(
+                scroll);
         xSpring = Spring.constant(0); // Spring we’ll use for X
         ySpring = Spring.constant(30); // Spring we’ll use for Y
         wSpring = Spring.constant(frame.getBounds().width); // Spring we’ll use for width
@@ -146,18 +152,22 @@
      * store it in the properties file
      */
     protected void setKey() {
-        AsynchronousClient.amazonkey = JOptionPane.showInputDialog(null, "Enter the license Key");
+        AsynchronousClient.amazonkey =
+                JOptionPane.showInputDialog(null, "Enter the license Key");
         if (AsynchronousClient.amazonkey == null) {
             setKey();
         }
         OutputStream propOut;
         try {
             String workingDir = System.getProperty("user.dir");
-            File propertyFile = new File(workingDir + File.separator + "samples" + File.separator +
-                                         "/key.properties");
+            File propertyFile = new File(workingDir + File.separator +
+                    "samples" +
+                    File.separator +
+                    "/key.properties");
             propOut = new FileOutputStream(propertyFile);
 
-            AsynchronousClient.prop.setProperty("amazonKey", AsynchronousClient.amazonkey);
+            AsynchronousClient.prop.setProperty("amazonKey",
+                    AsynchronousClient.amazonkey);
             AsynchronousClient.prop.store(propOut, "License Key");
         } catch (FileNotFoundException e) {
             e.printStackTrace();
@@ -181,7 +191,8 @@
             AsynchronousClient.search = textBox.getText().trim();
             AsynchronousClient.search.trim();
             System.out.println(textBox.getText());
-            if (!AsynchronousClient.prevSearch.equals(AsynchronousClient.search)) {
+            if (!AsynchronousClient.prevSearch.equals(
+                    AsynchronousClient.search)) {
                 AsynchronousClient.doSearch = true;
             }
         }
@@ -205,7 +216,7 @@
                 System.out.println("come to the place");
                 AsynchronousClient.maxResults =
                         JOptionPane.showInputDialog(null,
-                                                    "Enter the number of maximum results per page (Maximum allowed is 1000)");
+                                "Enter the number of maximum results per page (Maximum allowed is 1000)");
                 //JOptionPane.get
 
             } while (Integer.parseInt(AsynchronousClient.maxResults) > 1000 ||

Modified: webservices/axis/trunk/java/modules/samples/src/sample/axisversion/Version.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/sample/axisversion/Version.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/sample/axisversion/Version.java (original)
+++ webservices/axis/trunk/java/modules/samples/src/sample/axisversion/Version.java Mon Jul 11 10:48:55 2005
@@ -34,7 +34,9 @@
         OMFactory fac = OMAbstractFactory.getOMFactory();
         OMNamespace omNs = fac.createOMNamespace("http://localhost/my", "my");
         OMElement version = fac.createOMElement("Version", omNs);
-        version.addChild(fac.createText(version, "Hello I am Axis2 versionning service , My version is Axis2 M2 !! "));
+        version.addChild(
+                fac.createText(version,
+                        "Hello I am Axis2 versionning service , My version is Axis2 M2 !! "));
         return version;
     }
 }

Modified: webservices/axis/trunk/java/modules/samples/src/sample/google/common/util/PropertyLoader.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/sample/google/common/util/PropertyLoader.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/sample/google/common/util/PropertyLoader.java (original)
+++ webservices/axis/trunk/java/modules/samples/src/sample/google/common/util/PropertyLoader.java Mon Jul 11 10:48:55 2005
@@ -32,7 +32,8 @@
         try {
             Properties prop = new Properties();
             Class clazz = new Object().getClass();
-            InputStream stream = clazz.getResourceAsStream("/sample/google/common/conf/key.properties");
+            InputStream stream = clazz.getResourceAsStream(
+                    "/sample/google/common/conf/key.properties");
             prop.load(stream);
 
             googleKey = prop.getProperty("google.key");

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=210165&r1=210164&r2=210165&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 Jul 11 10:48:55 2005
@@ -92,15 +92,21 @@
             System.exit(0);
         }
 
-        call.setTo(new EndpointReference(AddressingConstants.WSA_TO, url.toString()));
+        call.setTo(
+                new EndpointReference(AddressingConstants.WSA_TO,
+                        url.toString()));
 
         MessageContext requestContext = ClientUtil.getMessageContext(this);
         try {
-            call.setTransportInfo(Constants.TRANSPORT_HTTP, Constants.TRANSPORT_HTTP, false);
+            call.setTransportInfo(Constants.TRANSPORT_HTTP,
+                    Constants.TRANSPORT_HTTP,
+                    false);
             QName opName = new QName("urn:GoogleSearch", "doGoogleSearch");
             OperationDescription opdesc = new OperationDescription(opName);
             //   OperationDescription opdesc = new OperationDescription(new QName("viewVersion"));
-            call.invokeNonBlocking(opdesc, requestContext, new ClientCallbackHandler(this.gui));
+            call.invokeNonBlocking(opdesc,
+                    requestContext,
+                    new ClientCallbackHandler(this.gui));
 
         } catch (AxisFault e1) {
             e1.printStackTrace();

Modified: webservices/axis/trunk/java/modules/samples/src/sample/google/search/ClientCallbackHandler.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/sample/google/search/ClientCallbackHandler.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/sample/google/search/ClientCallbackHandler.java (original)
+++ webservices/axis/trunk/java/modules/samples/src/sample/google/search/ClientCallbackHandler.java Mon Jul 11 10:48:55 2005
@@ -137,11 +137,13 @@
                                     iterator2 = elem.getChildren();
                                     while (iterator2.hasNext()) {
                                         node = (OMNode) iterator2.next();
-                                        if (node.getType() == OMNode.ELEMENT_NODE) {
+                                        if (node.getType() ==
+                                                OMNode.ELEMENT_NODE) {
                                             elem = (OMElement) node;
                                             String str3 = elem.getLocalName();
                                             System.out.println(str3);
-                                            if (elem.getLocalName().equals("snippet")) {
+                                            if (elem.getLocalName().equals(
+                                                    "snippet")) {
                                                 //System.out.println("Got the snippet");
                                                 tempStr = elem.getText();
 
@@ -149,14 +151,18 @@
                                                 snippet = snippet + tempStr;
                                             }
 
-                                            if (elem.getLocalName().equals("URL")) {
+                                            if (elem.getLocalName().equals(
+                                                    "URL")) {
                                                 //System.out.println("Got the URL");
                                                 strURL = elem.getText();
                                             }
                                         }
                                     }
                                 }
-                                snippet = snippet + "<br> URL:-<a href=" + strURL + ">" + strURL +
+                                snippet = snippet + "<br> URL:-<a href=" +
+                                        strURL +
+                                        ">" +
+                                        strURL +
                                         "</a\n\n> <br><br>";
                             }
                         }

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=210165&r1=210164&r2=210165&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 Jul 11 10:48:55 2005
@@ -45,7 +45,8 @@
      *
      * @return msgContext
      */
-    public static MessageContext getMessageContext(AsynchronousClient asyncClient)
+    public static MessageContext getMessageContext(
+            AsynchronousClient asyncClient)
             throws DeploymentException {
         OMNamespace defNs;
         OMElement operation;
@@ -56,30 +57,71 @@
         defNs = OMAbstractFactory.getSOAP11Factory().createOMNamespace("", "");
         SOAPFactory omFactory = OMAbstractFactory.getSOAP11Factory();
         SOAPEnvelope envelope = omFactory.getDefaultEnvelope();
-        envelope.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/", "SOAP-ENV");
-        envelope.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/", "SOAP-ENC");
-        envelope.declareNamespace("http://www.w3.org/1999/XMLSchema-instance/", "xsi");
+        envelope.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/",
+                "SOAP-ENV");
+        envelope.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/",
+                "SOAP-ENC");
+        envelope.declareNamespace("http://www.w3.org/1999/XMLSchema-instance/",
+                "xsi");
         envelope.declareNamespace("http://www.w3.org/1999/XMLSchema",
-                                  "xsd");
+                "xsd");
 
-        operation = omFactory.createOMElement("doGoogleSearch", "urn:GoogleSearch", "ns1");
+        operation =
+                omFactory.createOMElement("doGoogleSearch",
+                        "urn:GoogleSearch",
+                        "ns1");
         envelope.getBody().addChild(operation);
         operation.addAttribute("SOAP-ENV:encordingStyle",
-                               "http://schemas.xmlsoap.org/soap/encoding/", null);
+                "http://schemas.xmlsoap.org/soap/encoding/", null);
 
-        operation.addChild(getOMElement(omFactory, defNs, "key", "xsd:string", asyncClient.getKey()));
-        operation.addChild(getOMElement(omFactory, defNs, "q", "xsd:string", asyncClient.getSearch()));
-        operation.addChild(getOMElement(omFactory, defNs, "start", "xsd:int", str_ST_index));
-        operation.addChild(getOMElement(omFactory, defNs, "maxResults", "xsd:int", asyncClient.getMaxResults()));
-        operation.addChild(getOMElement(omFactory, defNs, "filter", "xsd:boolean", "true"));
-        operation.addChild(getOMElement(omFactory, defNs, "restrict", "xsd:string", ""));
-        operation.addChild(getOMElement(omFactory, defNs, "safeSearch", "xsd:boolean", "false"));
-        operation.addChild(getOMElement(omFactory, defNs, "lr", "xsd:string", ""));
-        operation.addChild(getOMElement(omFactory, defNs, "ie", "xsd:string", "latin1"));
-        operation.addChild(getOMElement(omFactory, defNs, "oe", "xsd:string", "latin1"));
+        operation.addChild(
+                getOMElement(omFactory,
+                        defNs,
+                        "key",
+                        "xsd:string",
+                        asyncClient.getKey()));
+        operation.addChild(
+                getOMElement(omFactory,
+                        defNs,
+                        "q",
+                        "xsd:string",
+                        asyncClient.getSearch()));
+        operation.addChild(
+                getOMElement(omFactory,
+                        defNs,
+                        "start",
+                        "xsd:int",
+                        str_ST_index));
+        operation.addChild(
+                getOMElement(omFactory,
+                        defNs,
+                        "maxResults",
+                        "xsd:int",
+                        asyncClient.getMaxResults()));
+        operation.addChild(
+                getOMElement(omFactory,
+                        defNs,
+                        "filter",
+                        "xsd:boolean",
+                        "true"));
+        operation.addChild(
+                getOMElement(omFactory, defNs, "restrict", "xsd:string", ""));
+        operation.addChild(
+                getOMElement(omFactory,
+                        defNs,
+                        "safeSearch",
+                        "xsd:boolean",
+                        "false"));
+        operation.addChild(
+                getOMElement(omFactory, defNs, "lr", "xsd:string", ""));
+        operation.addChild(
+                getOMElement(omFactory, defNs, "ie", "xsd:string", "latin1"));
+        operation.addChild(
+                getOMElement(omFactory, defNs, "oe", "xsd:string", "latin1"));
 
         ConfigurationContextFactory fac = new ConfigurationContextFactory();
-        ConfigurationContext configContext = fac.buildClientConfigurationContext("doGoogleSearch");
+        ConfigurationContext configContext = fac.buildClientConfigurationContext(
+                "doGoogleSearch");
         try {
             msgContext = new MessageContext(configContext);
         } catch (AxisFault axisFault) {

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=210165&r1=210164&r2=210165&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 Jul 11 10:48:55 2005
@@ -103,7 +103,8 @@
         });
         settingsMenu.add(maxResultsMenuItem);
         maxResultsMenuItem.setEnabled(true);
-        maxResultsMenuItem.setToolTipText("This feature is currently disabled!");
+        maxResultsMenuItem.setToolTipText(
+                "This feature is currently disabled!");
 
         JMenu helpMenu = new JMenu("Help");
         JMenuItem mnuItemHelp = new JMenuItem("Show Help");
@@ -119,7 +120,7 @@
         Dimension wndSize = theKit.getScreenSize(); // Get screen size
         // Set the position to screen center & size to half screen size
         frame.setBounds(wndSize.width / 6, wndSize.height / 10, // Position
-                        wndSize.width * 3 / 5, wndSize.height * 3 / 4); // Size
+                wndSize.width * 3 / 5, wndSize.height * 3 / 4); // Size
         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
 
         nextButton = new JButton("More Results");
@@ -144,7 +145,7 @@
         textEditorPane.setContentType("text/html");
         textEditorPane.addHyperlinkListener(new LinkFollower());
         JScrollPane scroll = new JScrollPane(textEditorPane, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
-                                             JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
+                JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
         pane.add(scroll);
 
 
@@ -163,7 +164,8 @@
 
         pane.add(textBox);
 
-        SpringLayout.Constraints textBoxConstraints = layout.getConstraints(textBox);
+        SpringLayout.Constraints textBoxConstraints = layout.getConstraints(
+                textBox);
         xSpring = Spring.constant(0); // Spring we’ll use for X
         ySpring = Spring.constant(0); // Spring we’ll use for Y
         wSpring = Spring.constant(frame.getBounds().width - 8); // Spring we’ll use for width
@@ -173,7 +175,8 @@
         textBoxConstraints.setX(xSpring); // Set the WEST edge constraint
         textBoxConstraints.setY(ySpring);
 
-        SpringLayout.Constraints scrollConstraints = layout.getConstraints(scroll);
+        SpringLayout.Constraints scrollConstraints = layout.getConstraints(
+                scroll);
 //        SpringLayout.Constraints scrollConstraints = layout.getConstraints(textEditorPane);
         xSpring = Spring.constant(0); // Spring we’ll use for X
         ySpring = Spring.constant(30); // Spring we’ll use for Y
@@ -184,7 +187,8 @@
         scrollConstraints.setX(xSpring); // Set the WEST edge constraint
         scrollConstraints.setY(ySpring); // Set the NORTH edge constraint
 
-        SpringLayout.Constraints backBtnConstraints = layout.getConstraints(backButton);
+        SpringLayout.Constraints backBtnConstraints = layout.getConstraints(
+                backButton);
         xSpring = Spring.constant(50); // Spring we’ll use for X
         ySpring = Spring.constant(480); // Spring we’ll use for Y
         wSpring = Spring.constant(200); // Spring we’ll use for width
@@ -194,7 +198,8 @@
         backBtnConstraints.setX(xSpring); // Set the WEST edge constraint
         backBtnConstraints.setY(ySpring);
 
-        SpringLayout.Constraints nextBtnConstraints = layout.getConstraints(nextButton);
+        SpringLayout.Constraints nextBtnConstraints = layout.getConstraints(
+                nextButton);
         xSpring = Spring.constant(250); // Spring we’ll use for X
         ySpring = Spring.constant(480); // Spring we’ll use for Y
         wSpring = Spring.constant(200); // Spring we’ll use for width
@@ -222,7 +227,9 @@
      * store it in the properties file
      */
     protected void setKey() {
-        String key = JOptionPane.showInputDialog(null, "Set the Google Key", PropertyLoader.getGoogleKey());
+        String key = JOptionPane.showInputDialog(null,
+                "Set the Google Key",
+                PropertyLoader.getGoogleKey());
         if (key != null && !key.trim().equals("")) {
             PropertyLoader.setGoogleKey(key);
         }
@@ -263,7 +270,7 @@
         JFrame frame = new JFrame();
         Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
         frame.setLocation(screenSize.width / 5,
-                          screenSize.height / 5);
+                screenSize.height / 5);
         frame.setSize(screenSize.width / 2, screenSize.height / 2);
 
         BorderLayout layout = new BorderLayout();
@@ -286,7 +293,10 @@
         try {
             jep.setPage(new File(helpDoc).toURL());
         } catch (IOException e) {
-            JOptionPane.showMessageDialog(null, "Help file not detected", "Help file error", JOptionPane.ERROR_MESSAGE);
+            JOptionPane.showMessageDialog(null,
+                    "Help file not detected",
+                    "Help file error",
+                    JOptionPane.ERROR_MESSAGE);
             return;
         }
         frame.setVisible(true);
@@ -303,7 +313,8 @@
     private void setMaxResults() {
         String maxResults =
                 JOptionPane.showInputDialog(null,
-                                            "Enter the number of maximum results per page (Maximum allowed is 10)", asyncClient.getMaxResults());
+                        "Enter the number of maximum results per page (Maximum allowed is 10)",
+                        asyncClient.getMaxResults());
         if (maxResults == null) {
             return;
         } else {

Modified: webservices/axis/trunk/java/modules/samples/src/sample/google/spellcheck/AsyncPanel.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/sample/google/spellcheck/AsyncPanel.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/sample/google/spellcheck/AsyncPanel.java (original)
+++ webservices/axis/trunk/java/modules/samples/src/sample/google/spellcheck/AsyncPanel.java Mon Jul 11 10:48:55 2005
@@ -11,7 +11,8 @@
  *
  * @author Nadana Gunarathna
  */
-public class AsyncPanel extends javax.swing.JPanel implements Observer, KeyListener {
+public class AsyncPanel extends javax.swing.JPanel implements Observer,
+        KeyListener {
     FormModel formModel;
     JTextArea writingTextArea;
     JTextArea displayTextArea;

Modified: webservices/axis/trunk/java/modules/samples/src/sample/google/spellcheck/FormModel.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/sample/google/spellcheck/FormModel.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/sample/google/spellcheck/FormModel.java (original)
+++ webservices/axis/trunk/java/modules/samples/src/sample/google/spellcheck/FormModel.java Mon Jul 11 10:48:55 2005
@@ -35,20 +35,26 @@
 
     private OMElement getElement(String word) {
         SOAPFactory omfactory = OMAbstractFactory.getSOAP11Factory();
-        OMNamespace opN = omfactory.createOMNamespace("urn:GoogleSearch", "ns1");
+        OMNamespace opN = omfactory.createOMNamespace("urn:GoogleSearch",
+                "ns1");
         OMNamespace emptyNs = omfactory.createOMNamespace("", null);
 
-        OMElement method = omfactory.createOMElement("doSpellingSuggestion", opN);
-        method.declareNamespace("http://www.w3.org/1999/XMLSchema-instance", "xsi");
+        OMElement method = omfactory.createOMElement("doSpellingSuggestion",
+                opN);
+        method.declareNamespace("http://www.w3.org/1999/XMLSchema-instance",
+                "xsi");
         method.declareNamespace("http://www.w3.org/1999/XMLSchema", "xsd");
 
         //reqEnv.getBody().addChild(method);
-        method.addAttribute("soapenv:encodingStyle", "http://schemas.xmlsoap.org/soap/encoding/", null);
+        method.addAttribute("soapenv:encodingStyle",
+                "http://schemas.xmlsoap.org/soap/encoding/",
+                null);
         OMElement value1 = omfactory.createOMElement("key", emptyNs);
         OMElement value2 = omfactory.createOMElement("phrase", emptyNs);
         value1.addAttribute("xsi:type", "xsd:string", null);
         value2.addAttribute("xsi:type", "xsd:string", null);
-        value1.addChild(omfactory.createText(value1, PropertyLoader.getGoogleKey()));
+        value1.addChild(
+                omfactory.createText(value1, PropertyLoader.getGoogleKey()));
         value2.addChild(omfactory.createText(value2, word));
 
         method.addChild(value1);
@@ -67,16 +73,23 @@
         }
         URL url = null;
         try {
-            url = new URL(PROTOCOL, PropertyLoader.getGoogleEndpointURL(), PropertyLoader.getGoogleEndpointServiceName());
+            url =
+                    new URL(PROTOCOL,
+                            PropertyLoader.getGoogleEndpointURL(),
+                            PropertyLoader.getGoogleEndpointServiceName());
             //url=new URL( "http","127.0.0.1",7070,"/search/beta2");
         } catch (MalformedURLException e) {
             observer.updateError(e.getMessage());
             ;
         }
 
-        call.setTo(new EndpointReference(AddressingConstants.WSA_TO, url.toString()));
-        try {
-            call.invokeNonBlocking("doGoogleSpellingSugg", requestElement, new GoogleCallBack(word));
+        call.setTo(
+                new EndpointReference(AddressingConstants.WSA_TO,
+                        url.toString()));
+        try {
+            call.invokeNonBlocking("doGoogleSpellingSugg",
+                    requestElement,
+                    new GoogleCallBack(word));
         } catch (AxisFault axisFault) {
             observer.updateError(axisFault.getMessage());
         }
@@ -94,15 +107,22 @@
         }
         URL url = null;
         try {
-            url = new URL(PROTOCOL, PropertyLoader.getGoogleEndpointURL(), PropertyLoader.getGoogleEndpointServiceName());
+            url =
+                    new URL(PROTOCOL,
+                            PropertyLoader.getGoogleEndpointURL(),
+                            PropertyLoader.getGoogleEndpointServiceName());
             //url=new URL( "http","127.0.0.1",7070,"/search/beta2");
         } catch (MalformedURLException e) {
             observer.updateError(e.getMessage());
         }
 
-        call.setTo(new EndpointReference(AddressingConstants.WSA_TO, url.toString()));
-        try {
-            responseElement = (OMElement) call.invokeBlocking("doGoogleSpellingSugg", requestElement);
+        call.setTo(
+                new EndpointReference(AddressingConstants.WSA_TO,
+                        url.toString()));
+        try {
+            responseElement =
+                    (OMElement) call.invokeBlocking("doGoogleSpellingSugg",
+                            requestElement);
         } catch (AxisFault axisFault) {
             observer.updateError(axisFault.getMessage());
         }
@@ -121,7 +141,8 @@
 
 
     public String getResponse(SOAPEnvelope responseEnvelope) {
-        QName qName1 = new QName("urn:GoogleSearch", "doSpellingSuggestionResponse");
+        QName qName1 = new QName("urn:GoogleSearch",
+                "doSpellingSuggestionResponse");
         QName qName2 = new QName("urn:GoogleSearch", "return");
 
 
@@ -161,7 +182,8 @@
             String suggestion = getResponse(result.getResponseEnvelope());
             if (suggestion == null) {
                 observer.update(originalWord);
-                observer.updateError("No suggestions found for " + originalWord);
+                observer.updateError(
+                        "No suggestions found for " + originalWord);
             } else {
                 observer.update(suggestion);
             }

Modified: webservices/axis/trunk/java/modules/samples/src/sample/google/spellcheck/SuggestionForm.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/sample/google/spellcheck/SuggestionForm.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/sample/google/spellcheck/SuggestionForm.java (original)
+++ webservices/axis/trunk/java/modules/samples/src/sample/google/spellcheck/SuggestionForm.java Mon Jul 11 10:48:55 2005
@@ -39,14 +39,16 @@
         JMenu modeMenu = new JMenu("Mode");
         modeMenu.setMnemonic(KeyEvent.VK_M);
         syncMenuItem = new JMenuItem("Sync Mode", KeyEvent.VK_S);
-        syncMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S, ActionEvent.CTRL_MASK));
+        syncMenuItem.setAccelerator(
+                KeyStroke.getKeyStroke(KeyEvent.VK_S, ActionEvent.CTRL_MASK));
         syncMenuItem.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent e) {
                 setSyncPanel();
             }
         });
         asyncMenuItem = new JMenuItem("ASync Mode", KeyEvent.VK_A);
-        asyncMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_A, ActionEvent.CTRL_MASK));
+        asyncMenuItem.setAccelerator(
+                KeyStroke.getKeyStroke(KeyEvent.VK_A, ActionEvent.CTRL_MASK));
         asyncMenuItem.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent e) {
                 setAsyncPanel();
@@ -57,8 +59,10 @@
 
         JMenu settingsMenu = new JMenu("Settings");
         settingsMenu.setMnemonic(KeyEvent.VK_S);
-        JMenuItem googleKeyMenu = new JMenuItem("Set Google Key", KeyEvent.VK_G);
-        googleKeyMenu.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_G, ActionEvent.CTRL_MASK));
+        JMenuItem googleKeyMenu = new JMenuItem("Set Google Key",
+                KeyEvent.VK_G);
+        googleKeyMenu.setAccelerator(
+                KeyStroke.getKeyStroke(KeyEvent.VK_G, ActionEvent.CTRL_MASK));
         googleKeyMenu.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent e) {
                 setKey();
@@ -69,7 +73,8 @@
         JMenu clearMenu = new JMenu("Clear");
         clearMenu.setMnemonic(KeyEvent.VK_C);
         JMenuItem clearMenuItem = new JMenuItem("Clear text boxes");
-        clearMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_C, ActionEvent.CTRL_MASK));
+        clearMenuItem.setAccelerator(
+                KeyStroke.getKeyStroke(KeyEvent.VK_C, ActionEvent.CTRL_MASK));
         clearMenuItem.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent e) {
                 asyncPanel.clear();
@@ -105,7 +110,7 @@
         SuggestionForm form = new SuggestionForm();
         Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
         form.setLocation(screenSize.width / 4,
-                         screenSize.height / 4);
+                screenSize.height / 4);
         form.setSize(screenSize.width / 2, screenSize.height / 2);
         form.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
         //form.setResizable(false);
@@ -136,7 +141,7 @@
 
     private void setKey() {
         String key = JOptionPane.showInputDialog(this, "Set the Google Key",
-                                                 PropertyLoader.getGoogleKey());
+                PropertyLoader.getGoogleKey());
         if (key != null && !key.trim().equals("")) {
             PropertyLoader.setGoogleKey(key);
         }
@@ -150,7 +155,7 @@
         JFrame frame = new JFrame();
         Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
         frame.setLocation(screenSize.width / 5,
-                          screenSize.height / 5);
+                screenSize.height / 5);
         frame.setSize(screenSize.width / 2, screenSize.height / 2);
 
         BorderLayout layout = new BorderLayout();
@@ -174,7 +179,7 @@
             helpDisplayPane.setPage(new File(helpDoc).toURL());
         } catch (IOException e) {
             JOptionPane.showMessageDialog(this, "Help file not detected", "Help file error",
-                                          JOptionPane.ERROR_MESSAGE);
+                    JOptionPane.ERROR_MESSAGE);
             return;
         }
         frame.setVisible(true);
@@ -189,7 +194,7 @@
 //                
             } catch (Exception err) {
                 JOptionPane.showMessageDialog(this, "Help file not detected", err.getMessage(),
-                                              JOptionPane.ERROR_MESSAGE);
+                        JOptionPane.ERROR_MESSAGE);
                 return;
             }
 

Modified: webservices/axis/trunk/java/modules/samples/src/sample/google/spellcheck/SyncPanel.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/sample/google/spellcheck/SyncPanel.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/sample/google/spellcheck/SyncPanel.java (original)
+++ webservices/axis/trunk/java/modules/samples/src/sample/google/spellcheck/SyncPanel.java Mon Jul 11 10:48:55 2005
@@ -11,7 +11,8 @@
  *
  * @author Nadana Gunarathna
  */
-public class SyncPanel extends javax.swing.JPanel implements Observer, ActionListener {
+public class SyncPanel extends javax.swing.JPanel implements Observer,
+        ActionListener {
     FormModel formModel;
     JTextArea writingTextArea;
     JTextArea displayTextArea;

Modified: webservices/axis/trunk/java/modules/samples/src/sample/mtom/MTOMService.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/sample/mtom/MTOMService.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/sample/mtom/MTOMService.java (original)
+++ webservices/axis/trunk/java/modules/samples/src/sample/mtom/MTOMService.java Mon Jul 11 10:48:55 2005
@@ -16,7 +16,11 @@
 package sample.mtom;
 
 import org.apache.axis2.attachments.JDK13IO;
-import org.apache.axis2.om.*;
+import org.apache.axis2.om.OMAbstractFactory;
+import org.apache.axis2.om.OMElement;
+import org.apache.axis2.om.OMFactory;
+import org.apache.axis2.om.OMNamespace;
+import org.apache.axis2.om.OMText;
 
 import javax.activation.DataHandler;
 import java.awt.*;
@@ -37,7 +41,7 @@
         DataHandler actualDH;
         actualDH = binaryNode.getDataHandler();
         Image actualObject = new JDK13IO().loadImage(actualDH.getDataSource()
-                                                     .getInputStream());
+                .getInputStream());
         FileOutputStream imageOutStream = new FileOutputStream(fileName);
         new JDK13IO().saveImage("image/jpeg", actualObject, imageOutStream);
 

Modified: webservices/axis/trunk/java/modules/samples/src/sample/mtom/client/MTOMClient.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/sample/mtom/client/MTOMClient.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/sample/mtom/client/MTOMClient.java (original)
+++ webservices/axis/trunk/java/modules/samples/src/sample/mtom/client/MTOMClient.java Mon Jul 11 10:48:55 2005
@@ -31,7 +31,7 @@
         MTOMClient form = new MTOMClient("MTOM Sample Client");
         Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
         form.setLocation(screenSize.width / 4 - 20,
-                         screenSize.height / 4);
+                screenSize.height / 4);
         form.setSize(screenSize.width / 2 - 80, screenSize.height / 2);
         form.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
         form.show();

Modified: webservices/axis/trunk/java/modules/samples/src/sample/mtom/client/MTOMClientModel.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/sample/mtom/client/MTOMClientModel.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/sample/mtom/client/MTOMClientModel.java (original)
+++ webservices/axis/trunk/java/modules/samples/src/sample/mtom/client/MTOMClientModel.java Mon Jul 11 10:48:55 2005
@@ -21,7 +21,11 @@
 import org.apache.axis2.attachments.ImageDataSource;
 import org.apache.axis2.attachments.JDK13IO;
 import org.apache.axis2.clientapi.Call;
-import org.apache.axis2.om.*;
+import org.apache.axis2.om.OMAbstractFactory;
+import org.apache.axis2.om.OMElement;
+import org.apache.axis2.om.OMFactory;
+import org.apache.axis2.om.OMNamespace;
+import org.apache.axis2.om.OMText;
 
 import javax.activation.DataHandler;
 import javax.xml.namespace.QName;
@@ -33,8 +37,9 @@
 public class MTOMClientModel {
     private File inputFile = null;
 
-    private EndpointReference targetEPR = new EndpointReference(AddressingConstants.WSA_TO,
-                                                                "http://127.0.0.1:8080/axis2/services/MyService");
+    private EndpointReference targetEPR = new EndpointReference(
+            AddressingConstants.WSA_TO,
+            "http://127.0.0.1:8080/axis2/services/MyService");
 
     private QName operationName = new QName("mtomSample");
 
@@ -56,7 +61,7 @@
                 .loadImage(new FileInputStream(inputFile));
 
         ImageDataSource dataSource = new ImageDataSource("test.jpg",
-                                                         expectedImage);
+                expectedImage);
         expectedDH = new DataHandler(dataSource);
         OMText textData = fac.createText(expectedDH, true);
         image.addChild(textData);
@@ -81,9 +86,10 @@
         // enabling MTOM in the client side
         call.set(Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE);
         call.setTransportInfo(Constants.TRANSPORT_HTTP,
-                              Constants.TRANSPORT_HTTP, false);
+                Constants.TRANSPORT_HTTP, false);
         OMElement result = (OMElement) call.invokeBlocking(operationName
-                                                           .getLocalPart(), payload);
+                .getLocalPart(),
+                payload);
 
         return result;
     }
@@ -91,7 +97,7 @@
 
     public void setTargetEPR(String targetEPR) {
         this.targetEPR = new EndpointReference(AddressingConstants.WSA_TO,
-                                               targetEPR);
+                targetEPR);
 
     }
 

Modified: webservices/axis/trunk/java/modules/samples/src/sample/mtom/client/UserInterface.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/sample/mtom/client/UserInterface.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/sample/mtom/client/UserInterface.java (original)
+++ webservices/axis/trunk/java/modules/samples/src/sample/mtom/client/UserInterface.java Mon Jul 11 10:48:55 2005
@@ -104,7 +104,8 @@
 
         if (e.getSource() == browse) {
 
-            int returnVal = jFileChooser.showDialog(this, "Choose the Image to Send");
+            int returnVal = jFileChooser.showDialog(this,
+                    "Choose the Image to Send");
 
             if (returnVal == JFileChooser.APPROVE_OPTION) {
                 file = jFileChooser.getSelectedFile();
@@ -124,12 +125,12 @@
             }
             if (file == null) {
                 JOptionPane.showMessageDialog(parent,
-                                              "Attachments should not be null.", " error",
-                                              JOptionPane.ERROR_MESSAGE);
+                        "Attachments should not be null.", " error",
+                        JOptionPane.ERROR_MESSAGE);
 
             } else if (("").equals(EPR.getText())) {
                 JOptionPane.showMessageDialog(parent, "END Point null",
-                                              " error", JOptionPane.ERROR_MESSAGE);
+                        " error", JOptionPane.ERROR_MESSAGE);
 
             } else {
                 EPRName = EPR.getText();
@@ -149,7 +150,7 @@
             OMElement result = (OMElement) mtomTest.testEchoXMLSync(fileName);
             jTextArea.setText(result.toString());
             JOptionPane.showMessageDialog(parent, "Sent & saved Image Succesfully",
-                                          " Success", JOptionPane.PLAIN_MESSAGE);
+                    " Success", JOptionPane.PLAIN_MESSAGE);
         } catch (Exception e) {
             e.printStackTrace(); //To change body of catch statement use File |
             // Settings | File Templates.

Modified: webservices/axis/trunk/java/modules/samples/src/userguide/clients/ClientForWebServiceWithModule.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/userguide/clients/ClientForWebServiceWithModule.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/userguide/clients/ClientForWebServiceWithModule.java (original)
+++ webservices/axis/trunk/java/modules/samples/src/userguide/clients/ClientForWebServiceWithModule.java Mon Jul 11 10:48:55 2005
@@ -29,21 +29,28 @@
  */
 
 public class ClientForWebServiceWithModule {
-    private static EndpointReference targetEPR = new EndpointReference(AddressingConstants.WSA_TO,
-                                                                       "http://127.0.0.1:8080/axis2/services/MyServiceWithModule/echo");
+    private static EndpointReference targetEPR = new EndpointReference(
+            AddressingConstants.WSA_TO,
+            "http://127.0.0.1:8080/axis2/services/MyServiceWithModule/echo");
 
     public static void main(String[] args) {
         try {
             OMElement payload = ClientUtil.getEchoOMElement();
             Call call = new Call();
             call.setTo(targetEPR);
-            call.setTransportInfo(Constants.TRANSPORT_HTTP, Constants.TRANSPORT_HTTP, false);
+            call.setTransportInfo(Constants.TRANSPORT_HTTP,
+                    Constants.TRANSPORT_HTTP,
+                    false);
 
             //Blocking invocation
-            OMElement result = (OMElement) call.invokeBlocking("echo", payload);
+            OMElement result = (OMElement) call.invokeBlocking("echo",
+                    payload);
 
             StringWriter writer = new StringWriter();
-            result.serializeWithCache(new OMOutput(XMLOutputFactory.newInstance().createXMLStreamWriter(writer)));
+            result.serializeWithCache(
+                    new OMOutput(
+                            XMLOutputFactory.newInstance()
+                    .createXMLStreamWriter(writer)));
             writer.flush();
 
             System.out.println(writer.toString());

Modified: webservices/axis/trunk/java/modules/samples/src/userguide/clients/ClientUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/userguide/clients/ClientUtil.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/userguide/clients/ClientUtil.java (original)
+++ webservices/axis/trunk/java/modules/samples/src/userguide/clients/ClientUtil.java Mon Jul 11 10:48:55 2005
@@ -26,7 +26,8 @@
 
     public static OMElement getEchoOMElement() {
         OMFactory fac = OMAbstractFactory.getOMFactory();
-        OMNamespace omNs = fac.createOMNamespace("http://example1.org/example1", "example1");
+        OMNamespace omNs = fac.createOMNamespace(
+                "http://example1.org/example1", "example1");
         OMElement method = fac.createOMElement("echo", omNs);
         OMElement value = fac.createOMElement("Text", omNs);
         value.addChild(fac.createText(value, "Axis2 Echo String "));
@@ -37,7 +38,8 @@
 
     public static OMElement getPingOMElement() {
         OMFactory fac = OMAbstractFactory.getOMFactory();
-        OMNamespace omNs = fac.createOMNamespace("http://example1.org/example1", "example1");
+        OMNamespace omNs = fac.createOMNamespace(
+                "http://example1.org/example1", "example1");
         OMElement method = fac.createOMElement("ping", omNs);
         OMElement value = fac.createOMElement("Text", omNs);
         value.addChild(fac.createText(value, "Axis2 Ping String "));

Modified: webservices/axis/trunk/java/modules/samples/src/userguide/clients/EchoBlockingClient.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/userguide/clients/EchoBlockingClient.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/userguide/clients/EchoBlockingClient.java (original)
+++ webservices/axis/trunk/java/modules/samples/src/userguide/clients/EchoBlockingClient.java Mon Jul 11 10:48:55 2005
@@ -29,21 +29,28 @@
  */
 
 public class EchoBlockingClient {
-    private static EndpointReference targetEPR = new EndpointReference(AddressingConstants.WSA_TO,
-                                                                       "http://127.0.0.1:8080/axis2/services/MyService/echo");
+    private static EndpointReference targetEPR = new EndpointReference(
+            AddressingConstants.WSA_TO,
+            "http://127.0.0.1:8080/axis2/services/MyService/echo");
 
     public static void main(String[] args) {
         try {
             OMElement payload = ClientUtil.getEchoOMElement();
             Call call = new Call();
             call.setTo(targetEPR);
-            call.setTransportInfo(Constants.TRANSPORT_HTTP, Constants.TRANSPORT_HTTP, false);
+            call.setTransportInfo(Constants.TRANSPORT_HTTP,
+                    Constants.TRANSPORT_HTTP,
+                    false);
 
             //Blocking invocation
-            OMElement result = (OMElement) call.invokeBlocking("echo", payload);
+            OMElement result = (OMElement) call.invokeBlocking("echo",
+                    payload);
 
             StringWriter writer = new StringWriter();
-            result.serializeWithCache(new OMOutput(XMLOutputFactory.newInstance().createXMLStreamWriter(writer)));
+            result.serializeWithCache(
+                    new OMOutput(
+                            XMLOutputFactory.newInstance()
+                    .createXMLStreamWriter(writer)));
             writer.flush();
 
             System.out.println(writer.toString());

Modified: webservices/axis/trunk/java/modules/samples/src/userguide/clients/EchoBlockingDualClient.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/userguide/clients/EchoBlockingDualClient.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/userguide/clients/EchoBlockingDualClient.java (original)
+++ webservices/axis/trunk/java/modules/samples/src/userguide/clients/EchoBlockingDualClient.java Mon Jul 11 10:48:55 2005
@@ -19,8 +19,9 @@
  * Time: 5:47:37 PM
  */
 public class EchoBlockingDualClient {
-    private static EndpointReference targetEPR = new EndpointReference(AddressingConstants.WSA_TO,
-                                                                       "http://127.0.0.1:8080/axis2/services/MyService/echo");
+    private static EndpointReference targetEPR = new EndpointReference(
+            AddressingConstants.WSA_TO,
+            "http://127.0.0.1:8080/axis2/services/MyService/echo");
 
     public static void main(String[] args) {
         try {
@@ -32,13 +33,19 @@
             //The boolean flag informs the axis2 engine to use two separate transport connection
             //to retrieve the response.
             call.engageModule(new QName(Constants.MODULE_ADDRESSING));
-            call.setTransportInfo(Constants.TRANSPORT_HTTP, Constants.TRANSPORT_HTTP, true);
+            call.setTransportInfo(Constants.TRANSPORT_HTTP,
+                    Constants.TRANSPORT_HTTP,
+                    true);
 
             //Blocking Invocation
-            OMElement result = (OMElement) call.invokeBlocking("echo", payload);
+            OMElement result = (OMElement) call.invokeBlocking("echo",
+                    payload);
 
             StringWriter writer = new StringWriter();
-            result.serializeWithCache(new OMOutput(XMLOutputFactory.newInstance().createXMLStreamWriter(writer)));
+            result.serializeWithCache(
+                    new OMOutput(
+                            XMLOutputFactory.newInstance()
+                    .createXMLStreamWriter(writer)));
             writer.flush();
 
             System.out.println(writer.toString());

Modified: webservices/axis/trunk/java/modules/samples/src/userguide/clients/EchoNonBlockingClient.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/userguide/clients/EchoNonBlockingClient.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/userguide/clients/EchoNonBlockingClient.java (original)
+++ webservices/axis/trunk/java/modules/samples/src/userguide/clients/EchoNonBlockingClient.java Mon Jul 11 10:48:55 2005
@@ -21,8 +21,9 @@
  * Time: 5:08:44 PM
  */
 public class EchoNonBlockingClient {
-    private static EndpointReference targetEPR = new EndpointReference(AddressingConstants.WSA_TO,
-                                                                       "http://127.0.0.1:8080/axis2/services/MyService/echo");
+    private static EndpointReference targetEPR = new EndpointReference(
+            AddressingConstants.WSA_TO,
+            "http://127.0.0.1:8080/axis2/services/MyService/echo");
 
     public static void main(String[] args) {
         try {
@@ -30,14 +31,19 @@
 
             Call call = new Call();
             call.setTo(targetEPR);
-            call.setTransportInfo(Constants.TRANSPORT_HTTP, Constants.TRANSPORT_HTTP, false);
+            call.setTransportInfo(Constants.TRANSPORT_HTTP,
+                    Constants.TRANSPORT_HTTP,
+                    false);
 
             //Callback to handle the response
             Callback callback = new Callback() {
                 public void onComplete(AsyncResult result) {
                     try {
                         StringWriter writer = new StringWriter();
-                        result.getResponseEnvelope().serializeWithCache(new OMOutput(XMLOutputFactory.newInstance().createXMLStreamWriter(writer)));
+                        result.getResponseEnvelope().serializeWithCache(
+                                new OMOutput(
+                                        XMLOutputFactory.newInstance()
+                                .createXMLStreamWriter(writer)));
                         writer.flush();
 
                         System.out.println(writer.toString());

Modified: webservices/axis/trunk/java/modules/samples/src/userguide/clients/EchoNonBlockingDualClient.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/userguide/clients/EchoNonBlockingDualClient.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/userguide/clients/EchoNonBlockingDualClient.java (original)
+++ webservices/axis/trunk/java/modules/samples/src/userguide/clients/EchoNonBlockingDualClient.java Mon Jul 11 10:48:55 2005
@@ -22,8 +22,9 @@
  * Time: 5:30:52 PM
  */
 public class EchoNonBlockingDualClient {
-    private static EndpointReference targetEPR = new EndpointReference(AddressingConstants.WSA_TO,
-                                                                       "http://127.0.0.1:8080/axis2/services/MyService/echo");
+    private static EndpointReference targetEPR = new EndpointReference(
+            AddressingConstants.WSA_TO,
+            "http://127.0.0.1:8080/axis2/services/MyService/echo");
 
     public static void main(String[] args) {
         try {
@@ -35,14 +36,19 @@
             //The boolean flag informs the axis2 engine to use two separate transport connection
             //to retrieve the response.
             call.engageModule(new QName(Constants.MODULE_ADDRESSING));
-            call.setTransportInfo(Constants.TRANSPORT_HTTP, Constants.TRANSPORT_HTTP, true);
+            call.setTransportInfo(Constants.TRANSPORT_HTTP,
+                    Constants.TRANSPORT_HTTP,
+                    true);
 
             //Callback to handle the response
             Callback callback = new Callback() {
                 public void onComplete(AsyncResult result) {
                     try {
                         StringWriter writer = new StringWriter();
-                        result.getResponseEnvelope().serializeWithCache(new OMOutput(XMLOutputFactory.newInstance().createXMLStreamWriter(writer)));
+                        result.getResponseEnvelope().serializeWithCache(
+                                new OMOutput(
+                                        XMLOutputFactory.newInstance()
+                                .createXMLStreamWriter(writer)));
                         writer.flush();
 
                         System.out.println(writer.toString());

Modified: webservices/axis/trunk/java/modules/samples/src/userguide/clients/MailClient.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/userguide/clients/MailClient.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/userguide/clients/MailClient.java (original)
+++ webservices/axis/trunk/java/modules/samples/src/userguide/clients/MailClient.java Mon Jul 11 10:48:55 2005
@@ -34,14 +34,16 @@
 
     public static void main(String[] args) throws AxisFault {
         MessageSender msgSender = new MessageSender();
-        msgSender.setTo(new EndpointReference(AddressingConstants.WSA_TO, toEpr));
+        msgSender.setTo(
+                new EndpointReference(AddressingConstants.WSA_TO, toEpr));
         msgSender.setSenderTransport(Constants.TRANSPORT_MAIL);
         msgSender.send("echo", getPayload());
     }
 
     private static OMElement getPayload() {
         OMFactory fac = OMAbstractFactory.getOMFactory();
-        OMNamespace omNs = fac.createOMNamespace("http://example1.org/example1", "example1");
+        OMNamespace omNs = fac.createOMNamespace(
+                "http://example1.org/example1", "example1");
         OMElement method = fac.createOMElement("echo", omNs);
         OMElement value = fac.createOMElement("Text", omNs);
         value.addChild(fac.createText(value, "Axis2 Echo String "));

Modified: webservices/axis/trunk/java/modules/samples/src/userguide/clients/PingClient.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/userguide/clients/PingClient.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/userguide/clients/PingClient.java (original)
+++ webservices/axis/trunk/java/modules/samples/src/userguide/clients/PingClient.java Mon Jul 11 10:48:55 2005
@@ -14,8 +14,9 @@
  * Time: 2:11:25 PM
  */
 public class PingClient {
-    private static EndpointReference targetEPR = new EndpointReference(AddressingConstants.WSA_TO,
-                                                                       "http://127.0.0.1:8080/axis2/services/MyService/ping");
+    private static EndpointReference targetEPR = new EndpointReference(
+            AddressingConstants.WSA_TO,
+            "http://127.0.0.1:8080/axis2/services/MyService/ping");
 
     public static void main(String[] args) {
         try {

Modified: webservices/axis/trunk/java/modules/samples/src/userguide/clients/RESTClient.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/userguide/clients/RESTClient.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/userguide/clients/RESTClient.java (original)
+++ webservices/axis/trunk/java/modules/samples/src/userguide/clients/RESTClient.java Mon Jul 11 10:48:55 2005
@@ -20,7 +20,11 @@
 import org.apache.axis2.addressing.EndpointReference;
 import org.apache.axis2.clientapi.Call;
 import org.apache.axis2.engine.AxisFault;
-import org.apache.axis2.om.*;
+import org.apache.axis2.om.OMAbstractFactory;
+import org.apache.axis2.om.OMElement;
+import org.apache.axis2.om.OMFactory;
+import org.apache.axis2.om.OMNamespace;
+import org.apache.axis2.om.OMOutput;
 
 import javax.xml.stream.FactoryConfigurationError;
 import javax.xml.stream.XMLOutputFactory;
@@ -38,13 +42,16 @@
 
         Call call = new Call();
         call.setTo(new EndpointReference(AddressingConstants.WSA_TO, toEpr));
-        call.setTransportInfo(Constants.TRANSPORT_HTTP, Constants.TRANSPORT_HTTP, false);
+        call.setTransportInfo(Constants.TRANSPORT_HTTP,
+                Constants.TRANSPORT_HTTP,
+                false);
         call.setDoREST(true);
 
         OMElement result = call.invokeBlocking("echo", getPayload());
 
         try {
-            XMLStreamWriter writer = XMLOutputFactory.newInstance().createXMLStreamWriter(System.out);
+            XMLStreamWriter writer = XMLOutputFactory.newInstance()
+                    .createXMLStreamWriter(System.out);
             result.serializeWithCache(new OMOutput(writer));
             writer.flush();
         } catch (XMLStreamException e) {
@@ -57,7 +64,8 @@
 
     private static OMElement getPayload() {
         OMFactory fac = OMAbstractFactory.getOMFactory();
-        OMNamespace omNs = fac.createOMNamespace("http://example1.org/example1", "example1");
+        OMNamespace omNs = fac.createOMNamespace(
+                "http://example1.org/example1", "example1");
         OMElement method = fac.createOMElement("echo", omNs);
         OMElement value = fac.createOMElement("Text", omNs);
         value.addChild(fac.createText(value, "Axis2 Echo String "));

Modified: webservices/axis/trunk/java/modules/samples/src/userguide/clients/TCPClient.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/userguide/clients/TCPClient.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/userguide/clients/TCPClient.java (original)
+++ webservices/axis/trunk/java/modules/samples/src/userguide/clients/TCPClient.java Mon Jul 11 10:48:55 2005
@@ -20,7 +20,11 @@
 import org.apache.axis2.addressing.EndpointReference;
 import org.apache.axis2.clientapi.Call;
 import org.apache.axis2.engine.AxisFault;
-import org.apache.axis2.om.*;
+import org.apache.axis2.om.OMAbstractFactory;
+import org.apache.axis2.om.OMElement;
+import org.apache.axis2.om.OMFactory;
+import org.apache.axis2.om.OMNamespace;
+import org.apache.axis2.om.OMOutput;
 
 import javax.xml.stream.FactoryConfigurationError;
 import javax.xml.stream.XMLOutputFactory;
@@ -38,13 +42,16 @@
 
         Call call = new Call();
         call.setTo(new EndpointReference(AddressingConstants.WSA_TO, toEpr));
-        call.setTransportInfo(Constants.TRANSPORT_TCP, Constants.TRANSPORT_TCP, false);
+        call.setTransportInfo(Constants.TRANSPORT_TCP,
+                Constants.TRANSPORT_TCP,
+                false);
         //call.engageModule(new QName(Constants.MODULE_ADDRESSING));
 
         OMElement result = call.invokeBlocking("echo", getPayload());
 
         try {
-            XMLStreamWriter writer = XMLOutputFactory.newInstance().createXMLStreamWriter(System.out);
+            XMLStreamWriter writer = XMLOutputFactory.newInstance()
+                    .createXMLStreamWriter(System.out);
             result.serializeWithCache(new OMOutput(writer));
             writer.flush();
         } catch (XMLStreamException e) {
@@ -57,7 +64,8 @@
 
     private static OMElement getPayload() {
         OMFactory fac = OMAbstractFactory.getOMFactory();
-        OMNamespace omNs = fac.createOMNamespace("tcp://localhost:8080/axis2/services/MyService", "example1");
+        OMNamespace omNs = fac.createOMNamespace(
+                "tcp://localhost:8080/axis2/services/MyService", "example1");
         OMElement method = fac.createOMElement("echo", omNs);
         OMElement value = fac.createOMElement("Text", omNs);
         value.addChild(fac.createText(value, "Axis2 Echo String "));

Modified: webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/CallUnregisteredServiceTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/CallUnregisteredServiceTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/CallUnregisteredServiceTest.java (original)
+++ webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/CallUnregisteredServiceTest.java Mon Jul 11 10:48:55 2005
@@ -40,7 +40,8 @@
 public class CallUnregisteredServiceTest extends TestCase {
     private Log log = LogFactory.getLog(getClass());
     private QName serviceName = new QName("", "EchoXMLService");
-    private QName operationName = new QName("http://localhost/my", "echoOMElement");
+    private QName operationName = new QName("http://localhost/my",
+            "echoOMElement");
 
     private AxisConfiguration engineRegistry;
     private MessageContext mc;
@@ -68,27 +69,34 @@
             SOAPFactory fac = OMAbstractFactory.getSOAP11Factory();
 
             SOAPEnvelope reqEnv = fac.getDefaultEnvelope();
-            OMNamespace omNs = fac.createOMNamespace("http://localhost/my", "my");
+            OMNamespace omNs = fac.createOMNamespace("http://localhost/my",
+                    "my");
             OMElement method = fac.createOMElement("echoOMElement", omNs);
             OMElement value = fac.createOMElement("myValue", omNs);
-            value.addChild(fac.createText(value, "Isaac Assimov, the foundation Sega"));
+            value.addChild(
+                    fac.createText(value,
+                            "Isaac Assimov, the foundation Sega"));
             method.addChild(value);
             reqEnv.getBody().addChild(method);
 
             Call call = new Call();
             EndpointReference targetEPR =
                     new EndpointReference(AddressingConstants.WSA_TO,
-                                          "http://127.0.0.1:"
-                                          + (UtilServer.TESTING_PORT)
-                                          + "/axis/services/EchoXMLService1");
-            call.setTransportInfo(Constants.TRANSPORT_HTTP, Constants.TRANSPORT_HTTP, false);
+                            "http://127.0.0.1:"
+                    + (UtilServer.TESTING_PORT)
+                    + "/axis/services/EchoXMLService1");
+            call.setTransportInfo(Constants.TRANSPORT_HTTP,
+                    Constants.TRANSPORT_HTTP,
+                    false);
             call.setTo(targetEPR);
             SOAPEnvelope resEnv =
-                    (SOAPEnvelope) call.invokeBlocking(operationName.getLocalPart(), reqEnv);
+                    (SOAPEnvelope) call.invokeBlocking(
+                            operationName.getLocalPart(), reqEnv);
 
             SOAPBody sb = resEnv.getBody();
             if (sb.hasFault()) {
-                throw new AxisFault(sb.getFault().getReason().getSOAPText().getText());
+                throw new AxisFault(
+                        sb.getFault().getReason().getSOAPText().getText());
             }
             fail("The test must fail due to wrong service Name");
 

Modified: webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/CommonsHTTPEchoRawXMLTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/CommonsHTTPEchoRawXMLTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/CommonsHTTPEchoRawXMLTest.java (original)
+++ webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/CommonsHTTPEchoRawXMLTest.java Mon Jul 11 10:48:55 2005
@@ -41,9 +41,9 @@
 public class CommonsHTTPEchoRawXMLTest extends TestCase {
     private EndpointReference targetEPR =
             new EndpointReference(AddressingConstants.WSA_TO,
-                                  "http://127.0.0.1:"
-                                  + (UtilServer.TESTING_PORT)
-                                  + "/axis/services/EchoXMLService/echoOMElement");
+                    "http://127.0.0.1:"
+            + (UtilServer.TESTING_PORT)
+            + "/axis/services/EchoXMLService/echoOMElement");
     private Log log = LogFactory.getLog(getClass());
     private QName serviceName = new QName("EchoXMLService");
     private QName operationName = new QName("echoOMElement");
@@ -70,11 +70,12 @@
         UtilServer.start();
         service =
                 Utils.createSimpleService(serviceName,
-                                          Echo.class.getName(),
-                                          operationName);
+                        Echo.class.getName(),
+                        operationName);
         UtilServer.deployService(service);
         serviceContext =
-                UtilServer.getConfigurationContext().createServiceContext(service.getName());
+                UtilServer.getConfigurationContext().createServiceContext(
+                        service.getName());
 
     }
 
@@ -86,14 +87,18 @@
     public void testEchoXMLASync() throws Exception {
         OMElement payload = TestingUtils.createDummyOMElement();
 
-        org.apache.axis2.clientapi.Call call = new org.apache.axis2.clientapi.Call(Constants.TESTING_PATH + "commons-http-enabledRepository");
+        org.apache.axis2.clientapi.Call call = new org.apache.axis2.clientapi.Call(
+                Constants.TESTING_PATH + "commons-http-enabledRepository");
 
         call.setTo(targetEPR);
-        call.setTransportInfo(Constants.TRANSPORT_COMMONS_HTTP, Constants.TRANSPORT_HTTP, false);
+        call.setTransportInfo(Constants.TRANSPORT_COMMONS_HTTP,
+                Constants.TRANSPORT_HTTP,
+                false);
 
         Callback callback = new Callback() {
             public void onComplete(AsyncResult result) {
-                TestingUtils.campareWithCreatedOMElement(result.getResponseEnvelope().getBody().getFirstElement());
+                TestingUtils.campareWithCreatedOMElement(
+                        result.getResponseEnvelope().getBody().getFirstElement());
                 finish = true;
             }
 
@@ -103,13 +108,16 @@
             }
         };
 
-        call.invokeNonBlocking(operationName.getLocalPart(), payload, callback);
+        call.invokeNonBlocking(operationName.getLocalPart(),
+                payload,
+                callback);
         int index = 0;
         while (!finish) {
             Thread.sleep(1000);
             index++;
             if (index > 10) {
-                throw new AxisFault("Server is shutdown as the Async response take too longs time");
+                throw new AxisFault(
+                        "Server is shutdown as the Async response take too longs time");
             }
         }
         call.close();
@@ -123,13 +131,17 @@
 
         OMElement payload = TestingUtils.createDummyOMElement();
 
-        org.apache.axis2.clientapi.Call call = new org.apache.axis2.clientapi.Call(Constants.TESTING_PATH + "commons-http-enabledRepository");
+        org.apache.axis2.clientapi.Call call = new org.apache.axis2.clientapi.Call(
+                Constants.TESTING_PATH + "commons-http-enabledRepository");
 
         call.setTo(targetEPR);
-        call.setTransportInfo(Constants.TRANSPORT_COMMONS_HTTP, Constants.TRANSPORT_HTTP, false);
+        call.setTransportInfo(Constants.TRANSPORT_COMMONS_HTTP,
+                Constants.TRANSPORT_HTTP,
+                false);
 
         OMElement result =
-                (OMElement) call.invokeBlocking(operationName.getLocalPart(), payload);
+                (OMElement) call.invokeBlocking(operationName.getLocalPart(),
+                        payload);
         TestingUtils.campareWithCreatedOMElement(result);
         call.close();
     }

Modified: webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/EchoRawXMLChunckedTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/EchoRawXMLChunckedTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/EchoRawXMLChunckedTest.java (original)
+++ webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/EchoRawXMLChunckedTest.java Mon Jul 11 10:48:55 2005
@@ -39,13 +39,14 @@
 public class EchoRawXMLChunckedTest extends TestCase {
     private EndpointReference targetEPR =
             new EndpointReference(AddressingConstants.WSA_TO,
-                                  "http://127.0.0.1:"
-                                  + (UtilServer.TESTING_PORT)
-                                  + "/axis/services/EchoXMLService/echoOMElement");
+                    "http://127.0.0.1:"
+            + (UtilServer.TESTING_PORT)
+            + "/axis/services/EchoXMLService/echoOMElement");
     private Log log = LogFactory.getLog(getClass());
     private QName serviceName = new QName("EchoXMLService");
     private QName operationName = new QName("echoOMElement");
-    private QName transportName = new QName("http://localhost/my", "NullTransport");
+    private QName transportName = new QName("http://localhost/my",
+            "NullTransport");
 
     private AxisConfiguration engineRegistry;
     private MessageContext mc;
@@ -68,11 +69,12 @@
         UtilServer.start(Constants.TESTING_PATH + "chuncked-enabledRepository");
         service =
                 Utils.createSimpleService(serviceName,
-                                          Echo.class.getName(),
-                                          operationName);
+                        Echo.class.getName(),
+                        operationName);
         UtilServer.deployService(service);
         serviceContext =
-                UtilServer.getConfigurationContext().createServiceContext(service.getName());
+                UtilServer.getConfigurationContext().createServiceContext(
+                        service.getName());
 
 
     }
@@ -128,13 +130,17 @@
 
         OMElement payload = TestingUtils.createDummyOMElement();
 
-        org.apache.axis2.clientapi.Call call = new org.apache.axis2.clientapi.Call(Constants.TESTING_PATH + "chuncked-enabledRepository");
+        org.apache.axis2.clientapi.Call call = new org.apache.axis2.clientapi.Call(
+                Constants.TESTING_PATH + "chuncked-enabledRepository");
 
         call.setTo(targetEPR);
-        call.setTransportInfo(Constants.TRANSPORT_HTTP, Constants.TRANSPORT_HTTP, false);
+        call.setTransportInfo(Constants.TRANSPORT_HTTP,
+                Constants.TRANSPORT_HTTP,
+                false);
 
         OMElement result =
-                (OMElement) call.invokeBlocking(operationName.getLocalPart(), payload);
+                (OMElement) call.invokeBlocking(operationName.getLocalPart(),
+                        payload);
         TestingUtils.campareWithCreatedOMElement(result);
         call.close();
     }

Modified: webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/EchoRawXMLLoadTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/EchoRawXMLLoadTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/EchoRawXMLLoadTest.java (original)
+++ webservices/axis/trunk/java/modules/samples/test/org/apache/axis2/engine/EchoRawXMLLoadTest.java Mon Jul 11 10:48:55 2005
@@ -39,13 +39,14 @@
 public class EchoRawXMLLoadTest extends TestCase {
     private EndpointReference targetEPR =
             new EndpointReference(AddressingConstants.WSA_TO,
-                                  "http://127.0.0.1:"
-                                  + (UtilServer.TESTING_PORT)
-                                  + "/axis/services/EchoXMLService/echoOMElement");
+                    "http://127.0.0.1:"
+            + (UtilServer.TESTING_PORT)
+            + "/axis/services/EchoXMLService/echoOMElement");
     private Log log = LogFactory.getLog(getClass());
     private QName serviceName = new QName("EchoXMLService");
     private QName operationName = new QName("echoOMElement");
-    private QName transportName = new QName("http://localhost/my", "NullTransport");
+    private QName transportName = new QName("http://localhost/my",
+            "NullTransport");
 
     private AxisConfiguration engineRegistry;
     private MessageContext mc;
@@ -68,11 +69,12 @@
         UtilServer.start();
         service =
                 Utils.createSimpleService(serviceName,
-                                          Echo.class.getName(),
-                                          operationName);
+                        Echo.class.getName(),
+                        operationName);
         UtilServer.deployService(service);
         serviceContext =
-                UtilServer.getConfigurationContext().createServiceContext(service.getName());
+                UtilServer.getConfigurationContext().createServiceContext(
+                        service.getName());
 
     }
 
@@ -130,13 +132,17 @@
         org.apache.axis2.clientapi.Call call = new org.apache.axis2.clientapi.Call();
 
         call.setTo(targetEPR);
-        call.setTransportInfo(Constants.TRANSPORT_HTTP, Constants.TRANSPORT_HTTP, false);
+        call.setTransportInfo(Constants.TRANSPORT_HTTP,
+                Constants.TRANSPORT_HTTP,
+                false);
 
         OMElement result =
-                (OMElement) call.invokeBlocking(operationName.getLocalPart(), payload);
+                (OMElement) call.invokeBlocking(operationName.getLocalPart(),
+                        payload);
 
         OMElement result1 =
-                (OMElement) call.invokeBlocking(operationName.getLocalPart(), payload);
+                (OMElement) call.invokeBlocking(operationName.getLocalPart(),
+                        payload);
 
         TestingUtils.campareWithCreatedOMElement(result);
         call.close();



Mime
View raw message