You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by fm...@apache.org on 2011/07/26 12:32:21 UTC

svn commit: r1151057 - /tuscany/sca-java-2.x/contrib/samples/learning-more/binding-websocket/autocomplete-webapp/README

Author: fmoga
Date: Tue Jul 26 10:32:20 2011
New Revision: 1151057

URL: http://svn.apache.org/viewvc?rev=1151057&view=rev
Log:
Fix typos in README.

Modified:
    tuscany/sca-java-2.x/contrib/samples/learning-more/binding-websocket/autocomplete-webapp/README

Modified: tuscany/sca-java-2.x/contrib/samples/learning-more/binding-websocket/autocomplete-webapp/README
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/contrib/samples/learning-more/binding-websocket/autocomplete-webapp/README?rev=1151057&r1=1151056&r2=1151057&view=diff
==============================================================================
--- tuscany/sca-java-2.x/contrib/samples/learning-more/binding-websocket/autocomplete-webapp/README (original)
+++ tuscany/sca-java-2.x/contrib/samples/learning-more/binding-websocket/autocomplete-webapp/README Tue Jul 26 10:32:20 2011
@@ -21,9 +21,9 @@ your choice supports one of these protoc
 The websocket binding also features a javascript API to simulate SCA in the 
 browser. In order to use it, the following script has to be included in the
 client page: 
-	<script type="text/javascript" 
-	        src="org.apache.tuscany.sca.WebsocketComponentContext.js">
-	</script>
+    <script type="text/javascript" 
+            src="org.apache.tuscany.sca.WebsocketComponentContext.js">
+    </script>
 	
 This will inject proxies for all services defined in the composite that are 
 using binding.websocket. All invocation and connection management is handled
@@ -34,9 +34,9 @@ be called:
 Given the asynchornous nature of websockets, a function should be defined in
 order to handle responses received for a certain service operation. This should
 be done as follows:
-	Tuscany.WebsocketComponentContext.<component name>.<service name>.<operation name>.responseHandler = function(response) {
-		// handle response
-	};
+    Tuscany.WebsocketComponentContext.<component name>.<service name>.<operation name>.responseHandler = function(response) {
+        // handle response
+    };
 	
 Note that the data exchange is automatically handled by the binding, so the
 parameters should have the same structure as the data types defined in the method
@@ -44,17 +44,17 @@ definition. Also, the response will have
 the service method. Objects are passed over the wire in JSON format.
 
 Another detail worth mentioning is that the binding will use a single websocket 
-connection to handle the communication between a browser client and all services 
+connection to handle communication between a browser client and all services 
 defined using binding.websocket on the same port. Requests and responses will get
 multiplexed via the same channel and get routed to the appropriate service 
 implementation, respectively javascript function.
 
-In order to run the sample, you can run "mvn jetty:run" which will start a Jetty
+In order to run the sample, you can execute "mvn jetty:run" which will start a Jetty
 instance automatically or use "mvn package" and deploy the resulting war to the
 application server of your choice.
 
 Next, point your browser at 
-	http://localhost:8080/sample-binding-websocket-autocomplete-webapp/
+    http://localhost:8080/sample-binding-websocket-autocomplete-webapp/
 	
 You can see how suggestions are being received in real time when characters are
 entered in the text field. You can see the persistent websocket connection using