[jboss-svn-commits] JBL Code SVN: r15438 - labs/jbossesb/trunk/product/samples/quickstarts/webservice_consumer2.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Fri Sep 28 10:18:18 EDT 2007


Author: james.williams at jboss.com
Date: 2007-09-28 10:18:18 -0400 (Fri, 28 Sep 2007)
New Revision: 15438

Modified:
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_consumer2/readme.txt
Log:
updating readme for both option1 and option2 type requests

Modified: labs/jbossesb/trunk/product/samples/quickstarts/webservice_consumer2/readme.txt
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_consumer2/readme.txt	2007-09-28 13:54:45 UTC (rev 15437)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_consumer2/readme.txt	2007-09-28 14:18:18 UTC (rev 15438)
@@ -1,8 +1,8 @@
 Overview:
 =========
-	This example demonstrates how to consume a 181 Web Service in an ESB action.
-    This ESB will make a webservice request that requires a single "toWhom" string parameter.
-    The webservice will return a greeting response. The ESB simply dislays the response on the 
+    This example demonstrates how to consume a 181 Web Service in an ESB action.
+    This ESB will make a webservice request that requires a Order and ArrayList of LineItems.
+    The webservice will return a OrderStatus. The ESB simply dislays the response on the 
     console.  
 
 Running this quickstart:
@@ -28,35 +28,51 @@
 	"Hello World" to something else and re-run "ant runtest".
 	
 	You should output that looks like this, after running "ant runtest":
-	&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
-    12:35:47,975 INFO  [STDOUT] Request map is: {sayHello.toWhom=Jimbo}
-    12:35:47,975 INFO  [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
-    12:35:47,990 WARN  [HttpMethodBase] Going to buffer response body of large or unknown size. Using 
-                       getResponseBodyAsStream instead is recommended.
-    12:35:47,991 INFO  [STDOUT] 
-    &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
-    12:35:47,991 INFO  [STDOUT] Response Map is: 
-              <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
-                 <env:Header></env:Header>
-              <env:Body>
-              <hel:sayHelloResponse xmlns:hel='http://webservice_consumer1/helloworld'>
-                 <return>Hello World Greeting for 'Jimbo' on Sat Jul 14 12:35:47 EDT 2007</return>
-              </hel:sayHelloResponse></env:Body></env:Envelope>
-    12:35:47,991 INFO  [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
+	09:45:28,668 INFO  [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
+        09:45:28,676 INFO  [STDOUT] Order is: Order ID= 1
+             Total Price=50.0
+             Ship to=1234 my way
+             Line Items:
+                ID: 1
+                Name: item name b
+                Price: 20.0
+                ID: 2
+                Name: item name c
+             Price: 30.0
+        09:45:28,678 WARN  [HttpMethodBase] Going to buffer response body of large or unknown size. Using
+        getResponseBodyAsStream instead is recommended.
+        09:45:28,680 INFO  [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
+        09:45:28,680 INFO  [STDOUT] Response Map is: {processOrderResponse.return.comment=order processed,
+        processOrderResponse.return.id=1, processOrderResponse.return.returnCode=1}
+        09:45:28,681 INFO  [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
 
 Project file descriptions:
 ==========================
 
 	jboss-esb.xml: 			
 	There is no JMS gateway in this quickstart. A java client talks directly to the ESB
-	listener queue called "queue/quickstart_webservice_consumer1_esb". The actions in 
+	listener queue called "queue/quickstart_webservice_consumer2_esb". The actions in 
 	jboss-esb.xml convert the ESB message into to a webservice parameter Map, make a call 
-	to the HelloWorldWS webservice, then print the response on the console. Both juddi.properties 
+	to the OrderProcessorWS webservice, then print the response on the console. Both juddi.properties 
 	and jbossesb-properties.xml are used when the service first boots up for self-registration 
-	based upon the service-category and service-name found in the esb-config.xml file.
+	based upon the service-category and service-name found in the esb-config.xml file.
+        There are 2 different request action methods, "option1" and "option2" that correspond to the 
+        Option 1 and Option 2 sections of this wiki: http://wiki.jboss.org/wiki/Wiki.jsp?page=SOAPClient.
+
+	To submit a request using Option 1 use this action markup: 
+        <action name="request-mapper" 
+		class="org.jboss.soa.esb.samples.quickstart.webservice_consumer2.MyRequestAction"
+		process="option1">
+	</action>
+	
+	To submit a request using Option 2 use this action markup: 
+        <action name="request-mapper" 
+		class="org.jboss.soa.esb.samples.quickstart.webservice_consumer2.MyRequestAction"
+		process="option2">
+	</action>
 
 	jndi.properties:
-	Needed primarily for org.jboss.soa.esb.samples.quickstart.webservice_consumer1.test.SendESBMessage that is fired by ant runtest.
+	Needed primarily for org.jboss.soa.esb.samples.quickstart.webservice_consumer2.test.SendESBMessage that is fired by ant runtest.
 
 	log4j.xml:
 	Needed to configure log4J used by both the quickstart and the ESB itself. A listener needs a place to log.
@@ -67,8 +83,8 @@
 	
 	src/../MyRequestAction.java
 	Convert the message body into a webservice request parameter Map that only has one paramater called
-	"sayHello.toWhom" for the web service call. The request parameter map is named 
-	"helloworld-request-parameters".
+	"orderProcessor.order" for the web service call. The request parameter map is named 
+	"request-params".
 	
 	org.jboss.soa.esb.actions.soap.SOAPClient
 	This class is used to make the call to the webservice. It will take the
@@ -77,7 +93,7 @@
 	
 	src/../MyResponseAction.java
 	Retrieve the webservice response and display it on the console.	The response location name
-	is "helloworld-response". 	
+	is "order-status-response". 	
 	
 	build.xml:
 	Targets and structure description:
@@ -89,4 +105,4 @@
 	*	the run task calls the Launcher passing in 3 arguments the most important are the esb-config.xml and 
 		esb-config-gateway.xml files
 	*	the runtest task calls the org.jboss.soa.esb.samples.quickstart.helloworld.test.SendEsbMessage class and passes in an argument representing
-		the string-based message to be pused into the queue the gateway is listening on. 
\ No newline at end of file
+		the string-based message to be pused into the queue the gateway is listening on. 




More information about the jboss-svn-commits mailing list