You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by de...@apache.org on 2006/03/22 08:08:50 UTC

svn commit: r387768 - in /webservices/axis2/trunk/java: modules/core/src/org/apache/axis2/transport/http/ modules/samples/src/userguide/clients/ modules/webapp/ xdocs/latest/

Author: deepal
Date: Tue Mar 21 23:08:49 2006
New Revision: 387768

URL: http://svn.apache.org/viewcvs?rev=387768&view=rev
Log:
- jsp fixing 
-document fixing for samples
-sample fixing

Modified:
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/ListingAgent.java
    webservices/axis2/trunk/java/modules/samples/src/userguide/clients/EchoBlockingDualClient.java
    webservices/axis2/trunk/java/modules/samples/src/userguide/clients/EchoNonBlockingClient.java
    webservices/axis2/trunk/java/modules/samples/src/userguide/clients/EchoNonBlockingDualClient.java
    webservices/axis2/trunk/java/modules/samples/src/userguide/clients/PingClient.java
    webservices/axis2/trunk/java/modules/webapp/engagingtoanoperation.jsp
    webservices/axis2/trunk/java/modules/webapp/upload.jsp
    webservices/axis2/trunk/java/xdocs/latest/userguide3.html

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/ListingAgent.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/ListingAgent.java?rev=387768&r1=387767&r2=387768&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/ListingAgent.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/ListingAgent.java Tue Mar 21 23:08:49 2006
@@ -206,7 +206,7 @@
                 configContext.getAxisConfiguration().getService(serviceName).getOperations());
         req.getSession().setAttribute(Constants.ENGAGE_STATUS, null);
 
-        String operationName = req.getParameter("operation");
+        String operationName = req.getParameter("axisOperation");
 
         if ((serviceName != null) && (moduleName != null) && (operationName != null)) {
             try {

Modified: webservices/axis2/trunk/java/modules/samples/src/userguide/clients/EchoBlockingDualClient.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/samples/src/userguide/clients/EchoBlockingDualClient.java?rev=387768&r1=387767&r2=387768&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/src/userguide/clients/EchoBlockingDualClient.java (original)
+++ webservices/axis2/trunk/java/modules/samples/src/userguide/clients/EchoBlockingDualClient.java Tue Mar 21 23:08:49 2006
@@ -39,6 +39,7 @@
             OMElement payload = ClientUtil.getEchoOMElement();
             Options options = new Options();
             options.setTo(targetEPR);
+            options.setAction("urn:echo");
             //The boolean flag informs the axis2 engine to use two separate transport connection
             //to retrieve the response.
             options.setTransportInProtocol(Constants.TRANSPORT_HTTP);

Modified: webservices/axis2/trunk/java/modules/samples/src/userguide/clients/EchoNonBlockingClient.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/samples/src/userguide/clients/EchoNonBlockingClient.java?rev=387768&r1=387767&r2=387768&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/src/userguide/clients/EchoNonBlockingClient.java (original)
+++ webservices/axis2/trunk/java/modules/samples/src/userguide/clients/EchoNonBlockingClient.java Tue Mar 21 23:08:49 2006
@@ -42,6 +42,7 @@
             OMElement payload = ClientUtil.getEchoOMElement();
             Options options = new Options();
             options.setTo(targetEPR);
+            options.setAction("urn:echo");
             options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
 
             //Callback to handle the response

Modified: webservices/axis2/trunk/java/modules/samples/src/userguide/clients/EchoNonBlockingDualClient.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/samples/src/userguide/clients/EchoNonBlockingDualClient.java?rev=387768&r1=387767&r2=387768&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/src/userguide/clients/EchoNonBlockingDualClient.java (original)
+++ webservices/axis2/trunk/java/modules/samples/src/userguide/clients/EchoNonBlockingDualClient.java Tue Mar 21 23:08:49 2006
@@ -46,6 +46,7 @@
             options.setTo(targetEPR);
             options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
             options.setUseSeparateListener(true);
+            options.setAction("urn:echo");
 
             //Callback to handle the response
             Callback callback = new Callback() {

Modified: webservices/axis2/trunk/java/modules/samples/src/userguide/clients/PingClient.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/samples/src/userguide/clients/PingClient.java?rev=387768&r1=387767&r2=387768&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/src/userguide/clients/PingClient.java (original)
+++ webservices/axis2/trunk/java/modules/samples/src/userguide/clients/PingClient.java Tue Mar 21 23:08:49 2006
@@ -38,9 +38,17 @@
             options.setTo(targetEPR);
 
             serviceClient.fireAndForget(payload);
+            /**
+             * We have to bock this thread untill we send the request , the problem
+             * is if we go out of the main thread , then request wont send ,so
+             * you have to wait some time :)
+             */
+          Thread.sleep(500);
 
         } catch (AxisFault axisFault) {
             axisFault.printStackTrace();
+        } catch (InterruptedException e) {
+            //
         }
     }
 

Modified: webservices/axis2/trunk/java/modules/webapp/engagingtoanoperation.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/webapp/engagingtoanoperation.jsp?rev=387768&r1=387767&r2=387768&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/webapp/engagingtoanoperation.jsp (original)
+++ webservices/axis2/trunk/java/modules/webapp/engagingtoanoperation.jsp Tue Mar 21 23:08:49 2006
@@ -49,10 +49,9 @@
         <td>
             <select name="axisOperation">
             <%
-                HashMap operations = (HashMap)request.getSession().getAttribute(Constants.OPERATION_MAP);
-                Collection serviceCol =  operations.values();
-                for (Iterator iterator = serviceCol.iterator(); iterator.hasNext();) {
-                    AxisOperation axisOperationtion = (AxisOperation)iterator.next();
+                Iterator operations = (Iterator)request.getSession().getAttribute(Constants.OPERATION_MAP);
+                while (operations.hasNext()) {
+                    AxisOperation axisOperationtion = (AxisOperation)operations.next();
                     String opname = axisOperationtion.getName().getLocalPart();
             %> <option  align="left" value="<%=opname%>"><%=opname%></option>
              <%
@@ -96,5 +95,4 @@
            </tr>
       </table>
    </form>
-<jsp:include page="include/adminfooter.jsp"></jsp:include>
-
+<jsp:include page="include/adminfooter.jsp"></jsp:include>
\ No newline at end of file

Modified: webservices/axis2/trunk/java/modules/webapp/upload.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/webapp/upload.jsp?rev=387768&r1=387767&r2=387768&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/webapp/upload.jsp (original)
+++ webservices/axis2/trunk/java/modules/webapp/upload.jsp Tue Mar 21 23:08:49 2006
@@ -57,8 +57,7 @@
 
     }
 %>
-<jsp:include page="include/adminheader.jsp">
-</jsp:include>
+<jsp:include page="include/adminheader.jsp"></jsp:include>
 <h2>Upload a axisService jar file</h2>
 <%
     boolean isMultipart = FileUpload.isMultipartContent(request);
@@ -119,5 +118,4 @@
                                       value=" Upload "/></td></tr>
     </table>
 </form>
-<jsp:include page="include/adminfooter.jsp">
-</jsp:include>
+<jsp:include page="include/adminfooter.jsp"></jsp:include>

Modified: webservices/axis2/trunk/java/xdocs/latest/userguide3.html
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/xdocs/latest/userguide3.html?rev=387768&r1=387767&r2=387768&view=diff
==============================================================================
--- webservices/axis2/trunk/java/xdocs/latest/userguide3.html (original)
+++ webservices/axis2/trunk/java/xdocs/latest/userguide3.html Tue Mar 21 23:08:49 2006
@@ -203,7 +203,12 @@
        ServiceClient serviceClient = new ServiceClient();
        serviceClient.setOptions(options);
        serviceClient.fireAndForget(payload);
-
+        /**
+         * We have to bock this thread untill we send the request , the problem
+         * is if we go out of the main thread , then request wont send ,so
+         * you have to wait some time :)
+         */
+       Thread.sleep(500);
      } 
 catch (AxisFault axisFault) {
             axisFault.printStackTrace();
@@ -290,7 +295,8 @@
 
             //The boolean flag informs the axis2 engine to use two separate transport connection
             //to retrieve the response.
-<br>            options.setUseSeparateListener(true); 
+<br>            options.setUseSeparateListener(true);
+               options.setAction("urn:echo"); 
             
             ServiceClient serviceClinet = new ServiceClinet();
 <br>            serviceClinet.setOptions(options);</pre>