Modified: webservices/synapse/branches/1.1/src/main/release/README.txt URL: http://svn.apache.org/viewvc/webservices/synapse/branches/1.1/src/main/release/README.txt?rev=591931&r1=591930&r2=591931&view=diff ============================================================================== --- webservices/synapse/branches/1.1/src/main/release/README.txt (original) +++ webservices/synapse/branches/1.1/src/main/release/README.txt Mon Nov 5 01:30:53 2007 @@ -65,7 +65,7 @@ For Synapse mediation samples please see the Synapse_Quickstart.html, Synapse_Samples.html and Synapse_Samples_Setup.html -For more information on the Synapse Configuration language syntax and useage refer to +For more information on the Synapse Configuration language syntax and usage refer to Synapse_Configuration_Language.html ------------------- @@ -85,7 +85,7 @@ Support =================== -Please refer to the release_notes.txt file for information on commons issues and the solutions. +Please refer to the release_notes.txt file for information on common issues and the solutions. Any issues with this release can be reported to Apache Synapse mailing list or in the JIRA issue tracker.
Modified: webservices/synapse/branches/1.1/src/main/release/docs/release_notes.txt URL: http://svn.apache.org/viewvc/webservices/synapse/branches/1.1/src/main/release/docs/release_notes.txt?rev=591931&r1=591930&r2=591931&view=diff ============================================================================== --- webservices/synapse/branches/1.1/src/main/release/docs/release_notes.txt (original) +++ webservices/synapse/branches/1.1/src/main/release/docs/release_notes.txt Mon Nov 5 01:30:53 2007 @@ -25,9 +25,12 @@ 5. Synapse configuration language Please see the document docs/Synapse_Configuration_Language.html -6. Known Issues and limitations +6. Extending Synapse + Please see the document docs/Synapse_Extending.html + +7. Known Issues and limitations -7. Frequently asked questions +8. Frequently asked questions * How can I change the default logging level of Synapse? Edit the lib/log4j.properties and set the line "log4j.category.org.apache.synapse=INFO" to @@ -41,14 +44,14 @@ * If you encounter issues with your JDK related to XML processing, try placing the Xerces jar files xercesImpl-2.8.0.jar and xml-apis-1.3.03.jar in your <JDK>/jre/lib/endorsed/ directory. -8. Reporting Problems +9. Reporting Problems Please use Apache's JIRA system (http://issues.apache.org/jira/) to report issues you find. You may also join the: synapse-dev mailing list by sending email to [EMAIL PROTECTED] synapse-user mailing list by sending email to [EMAIL PROTECTED] -9. New features +10. New features The 1.1 release * Apache VFS based file transport Modified: webservices/synapse/branches/1.1/src/site/resources/Synapse_QuickStart.html URL: http://svn.apache.org/viewvc/webservices/synapse/branches/1.1/src/site/resources/Synapse_QuickStart.html?rev=591931&r1=591930&r2=591931&view=diff ============================================================================== --- webservices/synapse/branches/1.1/src/site/resources/Synapse_QuickStart.html (original) +++ webservices/synapse/branches/1.1/src/site/resources/Synapse_QuickStart.html Mon Nov 5 01:30:53 2007 @@ -114,23 +114,10 @@ <p>You should have following pre-requisites installed on your system to follow through this guide</p> <ul> - <li>A Java 2 SE - JDK or JRE of version 1.4.2 or higher</li> + <li>A Java 2 SE - JDK or JRE of version 1.5.x or higher</li> <li>Apache Ant http://ant.apache.org</li> </ul> -<p>Note: To use the bundled https transport, you will need a Java 2 SE -runtime of version 1.5 or later. If you are using a J2SE below 1.5 and does -not require the https transport, you may comment out the following section -from your repository/conf/axis2.xml and -samples/axis2Server/repository/conf/axis2.xml configuration files.</p> -<pre>... - <transportReceiver name="https"...<br> ...<br> </transportReceiver> - ... - <transportSender name="https"...<br> ...<br> </transportSender> -....</pre> - -<p></p> - <h2>Message Mediation</h2> <p>In this example Synapse will be used to simply log all the messages @@ -144,15 +131,15 @@ <p>Our first task is to download Synapse. Open a web browser and access the following URL: http://ws.apache.org/synapse/download.cgi. You will then see -the list of available releases. Click on the 1.0 version, and you will be -directed to the Synapse 1.0 release download page. Now download the 'Standard +the list of available releases. Click on the 1.1 version, and you will be +directed to the Synapse 1.1 release download page. Now download the 'Standard binary distribution' ZIP or tar.gz archive compatible with your operating system.</p> <h3>Installation</h3> <p>Synapse can be installed just by extracting the downloaded binary -archive.. A directory named synapse-1.0 will be created in the selected +archive.. A directory named synapse-1.1 will be created in the selected parent directory, containing all the files required for Synapse. We will refer to this directory as <synapse-home> from now on.</p> @@ -178,30 +165,31 @@ server. </p> <p></p> -<pre>[EMAIL PROTECTED]:/opt/synapse/samples/axis2Server$ cd src/SimpleStockQuoteService/ [EMAIL PROTECTED]:/opt/synapse/samples/axis2Server/src/SimpleStockQuoteService$ ant +<pre>[EMAIL PROTECTED]:/opt/synapse-1.1/samples/axis2Server$ cd src/SimpleStockQuoteService/ [EMAIL PROTECTED]:/opt/synapse-1.1/samples/axis2Server/src/SimpleStockQuoteService$ ant Buildfile: build.xml clean: - [delete] Deleting directory /home/asankha/java/synapse-1.0-RC1-SNAPSHOT/samples/axis2Server/src/SimpleStockQuoteService/temp init: - [mkdir] Created dir: /home/asankha/java/synapse-1.0-RC1-SNAPSHOT/samples/axis2Server/src/SimpleStockQuoteService/temp - [mkdir] Created dir: /home/asankha/java/synapse-1.0-RC1-SNAPSHOT/samples/axis2Server/src/SimpleStockQuoteService/temp/classes + [mkdir] Created dir: /opt/synapse-1.1/samples/axis2Server/src/SimpleStockQuoteService/temp + [mkdir] Created dir: /opt/synapse-1.1/samples/axis2Server/src/SimpleStockQuoteService/temp/classes + [mkdir] Created dir: /opt/synapse-1.1/samples/axis2Server/repository/services compile-all: - [javac] Compiling 9 source files to /home/asankha/java/synapse-1.0-RC1-SNAPSHOT/samples/axis2Server/src/SimpleStockQuoteService/temp/classes + [javac] Compiling 9 source files to /opt/synapse-1.1/samples/axis2Server/src/SimpleStockQuoteService/temp/classes build-service: - [mkdir] Created dir: /home/asankha/java/synapse-1.0-RC1-SNAPSHOT/samples/axis2Server/src/SimpleStockQuoteService/temp/SimpleStockQuote - [mkdir] Created dir: /home/asankha/java/synapse-1.0-RC1-SNAPSHOT/samples/axis2Server/src/SimpleStockQuoteService/temp/SimpleStockQuote/META-INF - [copy] Copying 1 file to /home/asankha/java/synapse-1.0-RC1-SNAPSHOT/samples/axis2Server/src/SimpleStockQuoteService/temp/SimpleStockQuote/META-INF - [copy] Copying 1 file to /home/asankha/java/synapse-1.0-RC1-SNAPSHOT/samples/axis2Server/src/SimpleStockQuoteService/temp/SimpleStockQuote/META-INF - [copy] Copying 9 files to /home/asankha/java/synapse-1.0-RC1-SNAPSHOT/samples/axis2Server/src/SimpleStockQuoteService/temp/SimpleStockQuote - [jar] Building jar: /home/asankha/java/synapse-1.0-RC1-SNAPSHOT/samples/axis2Server/repository/services/SimpleStockQuoteService.aar + [mkdir] Created dir: /opt/synapse-1.1/samples/axis2Server/src/SimpleStockQuoteService/temp/SimpleStockQuote + [mkdir] Created dir: /opt/synapse-1.1/samples/axis2Server/src/SimpleStockQuoteService/temp/SimpleStockQuote/META-INF + [copy] Copying 1 file to /opt/synapse-1.1/samples/axis2Server/src/SimpleStockQuoteService/temp/SimpleStockQuote/META-INF + [copy] Copying 1 file to /opt/synapse-1.1/samples/axis2Server/src/SimpleStockQuoteService/temp/SimpleStockQuote/META-INF + [copy] Copying 9 files to /opt/synapse-1.1/samples/axis2Server/src/SimpleStockQuoteService/temp/SimpleStockQuote + [jar] Building jar: /opt/synapse-1.1/samples/axis2Server/repository/services/SimpleStockQuoteService.aar BUILD SUCCESSFUL -Total time: 1 second</pre> +Total time: 2 seconds [EMAIL PROTECTED]:/opt/synapse-1.1/samples/axis2Server/src/SimpleStockQuoteService$</pre> <p>Now go to <synapse-home>/samples/axis2Server directory and start the server using the following command. This will start Axis2 server on port 9000 @@ -214,16 +202,19 @@ </div> <p>You will see the following messages on the console.</p> -<pre>[EMAIL PROTECTED]:/opt/synapse/samples/axis2Server$ ./axis2server.sh +<pre>[EMAIL PROTECTED]:/opt/synapse-1.1/samples/axis2Server$ ./axis2server.sh + Using Bouncy castle JAR for Java 1.5 Using JAVA_HOME: /opt/jdk1.5_06 - Using AXIS2 Repository : /home/asankha/java/synapse-1.0-RC1-SNAPSHOT/samples/axis2Server/repository - Using AXIS2 Configuration : /home/asankha/java/synapse-1.0-RC1-SNAPSHOT/samples/axis2Server/repository/conf/axis2.xml -[SimpleAxisServer] Using the Axis2 Repository : /home/asankha/java/synapse-1.0-RC1-SNAPSHOT/samples/axis2Server/repository -[SimpleAxisServer] Using the Axis2 Configuration File : /home/asankha/java/synapse-1.0-RC1-SNAPSHOT/samples/axis2Server/repository/conf/axis2.xml -[main] INFO HttpCoreNIOSender - HTTPS Sender starting -[main] INFO HttpCoreNIOSender - HTTP Sender starting -[main] INFO HttpCoreNIOListener - HTTPS Listener starting on port : 9002 -[main] INFO HttpCoreNIOListener - HTTP Listener starting on port : 9000 </pre> + Using AXIS2 Repository : /opt/synapse-1.1/samples/axis2Server/repository + Using AXIS2 Configuration : /opt/synapse-1.1/samples/axis2Server/repository/conf/axis2.xml +2007-11-05 14:36:41,462 [-] [main] INFO SimpleHTTPServer [SimpleAxisServer] Starting +[SimpleAxisServer] Using the Axis2 Repository : /opt/synapse-1.1/samples/axis2Server/repository +[SimpleAxisServer] Using the Axis2 Configuration File : /opt/synapse-1.1/samples/axis2Server/repository/conf/axis2.xml +2007-11-05 14:36:43,864 [-] [main] INFO HttpCoreNIOSender HTTPS Sender starting +2007-11-05 14:36:43,891 [-] [main] INFO HttpCoreNIOSender HTTP Sender starting +2007-11-05 14:36:44,288 [-] [main] INFO HttpCoreNIOListener HTTPS Listener starting on port : 9002 +2007-11-05 14:36:44,298 [-] [main] INFO HttpCoreNIOListener HTTP Listener starting on port : 9000 +2007-11-05 14:36:44,350 [-] [main] INFO SimpleHTTPServer [SimpleAxisServer] Started</pre> <p></p> @@ -252,26 +243,30 @@ <p>Following messages will be displayed on the console to indicate the successfull startup of Synapse.</p> -<pre>[EMAIL PROTECTED]:/opt/synapse/bin$ ./synapse.sh -sample 0 +<pre>[EMAIL PROTECTED]:/opt/synapse-1.1/bin$ ./synapse.sh -sample 0 + Using Bouncy castle JAR for Java 1.5 Starting Synapse/Java ... -Using SYNAPSE_HOME: /opt/synapse +Using SYNAPSE_HOME: /opt/synapse-1.1 Using JAVA_HOME: /opt/jdk1.5_06 -Using SYNAPSE_XML: -Dsynapse.xml=/opt/synapse/repository/conf/sample/synapse_sample_0.xml -[SynapseServer] Using the Axis2 Repository /opt/synapse/repository -[main] INFO SynapseModule - Initializing the Synapse configuration ... -... -[main] INFO SynapseConfigurationBuilder - Loaded Synapse configuration from : /opt/synapse/repository/conf/sample/synapse_sample_0.xml -[main] INFO SynapseModule - Deploying the Synapse service.. -[main] INFO SynapseModule - Deploying Proxy services... -[main] INFO SynapseModule - Synapse initialized successfully...! -[main] ERROR SandeshaModule - Could not load module policies. Using default values. -[main] INFO HttpCoreNIOSender - HTTPS Sender starting -[main] INFO HttpCoreNIOSender - HTTP Sender starting -[main] INFO HttpCoreNIOListener - HTTPS Listener starting on port : 8443 -[SynapseServer] Starting transport https on port 8443 -[main] INFO HttpCoreNIOListener - HTTP Listener starting on port : 8080 -[SynapseServer] Starting transport http on port 8080 -[SynapseServer] Ready</pre> +Using SYNAPSE_XML: -Dsynapse.xml=/opt/synapse-1.1/repository/conf/sample/synapse_sample_0.xml +2007-11-05 14:58:55,029 [-] [main] INFO ServerManager Using the Axis2 Repository /opt/synapse-1.1/repository +2007-11-05 14:58:56,617 [-] [main] INFO SynapseInitializationModule Initializing Synapse at : Mon Nov 05 14:58:56 LKT 2007 +2007-11-05 14:58:56,618 [127.0.1.1-asankha] [main] INFO SynapseInitializationModule Loading mediator extensions... +2007-11-05 14:58:56,619 [127.0.1.1-asankha] [main] INFO SynapseInitializationModule Initializing the Synapse configuration ... +2007-11-05 14:58:56,624 [127.0.1.1-asankha] [main] INFO XMLConfigurationBuilder Generating the Synapse configuration model by parsing the XML configuration +2007-11-05 14:58:56,717 [127.0.1.1-asankha] [main] INFO SynapseConfigurationBuilder Loaded Synapse configuration from : /opt/synapse-1.1/repository/conf/sample/synapse_sample_0.xml +2007-11-05 14:58:56,724 [127.0.1.1-asankha] [main] INFO SynapseInitializationModule Deploying the Synapse service.. +2007-11-05 14:58:56,740 [127.0.1.1-asankha] [main] INFO SynapseInitializationModule Initializing Sandesha 2... +2007-11-05 14:58:56,801 [127.0.1.1-asankha] [main] INFO SynapseInitializationModule Deploying Proxy services... +2007-11-05 14:58:56,801 [127.0.1.1-asankha] [main] INFO SynapseInitializationModule Synapse initialized successfully...! +2007-11-05 14:58:56,886 [127.0.1.1-asankha] [main] INFO HttpCoreNIOSender HTTPS Sender starting +2007-11-05 14:58:56,887 [127.0.1.1-asankha] [main] INFO HttpCoreNIOSender HTTP Sender starting +2007-11-05 14:58:57,039 [127.0.1.1-asankha] [main] INFO HttpCoreNIOListener HTTPS Listener starting on port : 8443 +2007-11-05 14:58:57,040 [127.0.1.1-asankha] [main] INFO ServerManager Starting transport https on port 8443 +2007-11-05 14:58:57,041 [127.0.1.1-asankha] [main] INFO HttpCoreNIOListener HTTP Listener starting on port : 8080 +2007-11-05 14:58:57,041 [127.0.1.1-asankha] [main] INFO ServerManager Starting transport http on port 8080 +2007-11-05 14:58:57,085 [127.0.1.1-asankha] [main] INFO ServerManager Starting transport vfs +2007-11-05 14:58:57,086 [127.0.1.1-asankha] [main] INFO ServerManager Ready for processing</pre> <p></p> @@ -280,15 +275,17 @@ <p>Now the final step, running the client. Go to <synapse-home>/samples/axis2Client directory and type the following command</p> -<pre>[EMAIL PROTECTED]:/opt/synapse/samples/axis2Client$ ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8080 -Dmode=quote -Dsymbol=IBM +<pre>[EMAIL PROTECTED]:/opt/synapse-1.1/samples/axis2Client$ ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8080 -Dmode=quote -Dsymbol=IBM Buildfile: build.xml init: + [mkdir] Created dir: /opt/synapse-1.1/samples/axis2Client/target/classes compile: + [javac] Compiling 10 source files to /opt/synapse-1.1/samples/axis2Client/target/classes stockquote: - [java] Standard :: Stock price = $175.56196739870038 + [java] Standard :: Stock price = $91.09641757880443 BUILD SUCCESSFUL</pre> @@ -328,43 +325,49 @@ <p>Now take a look at the console running Synapse. You will see that all the details of the mediation are logged along with all the SOAP messages passed -through Synapse - as Synapse is running on debug mode by default.</p> -<pre>[I/O reactor worker thread 5] INFO PipeImpl - Using native OS Pipes for event-driven to stream IO bridging -[HttpServerWorker-1] DEBUG SynapseMessageReceiver - Synapse received a new message for message mediation... -[HttpServerWorker-1] DEBUG SynapseMessageReceiver - Received To: http://localhost:9000/soap/SimpleStockQuoteService -[HttpServerWorker-1] DEBUG SynapseMessageReceiver - SOAPAction: urn:getQuote -[HttpServerWorker-1] DEBUG SynapseMessageReceiver - WSA-Action: urn:getQuote -[HttpServerWorker-1] DEBUG SynapseMessageReceiver - Body : -<?xml version='1.0' encoding='utf-8'?><br><soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><br><soapenv:Header><br><wsa:To>http://localhost:9000/soap/SimpleStockQuoteService</wsa:To><br><wsa:MessageID>urn:uuid:32748ED82860C9DBDE1177504004875</wsa:MessageID><br><wsa:Action>urn:getQuote</wsa:Action></soapenv:Header><br><soapenv:Body><m0:getQuote xmlns:m0="http://services.samples/xsd"><m0:request><m0:symbol>IBM</m0:symbol></m0:request><br></m0:getQuote></soapenv:Body></soapenv:Envelope> -[HttpServerWorker-1] DEBUG SequenceMediator - Sequence mediator <main> :: mediate() -[HttpServerWorker-1] DEBUG AbstractListMediator - Implicit Sequence <SequenceMediator> :: mediate() -[HttpServerWorker-1] DEBUG LogMediator - Log mediator :: mediate() -[HttpServerWorker-1] INFO LogMediator - To : http://localhost:9000/soap/SimpleStockQuoteService, <br>MessageID : urn:uuid:32748ED82860C9DBDE1177504004875, Action : urn:getQuote, Envelope: <br><?xml version='1.0' encoding='utf-8'?><br><soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><br><soapenv:Header><br><wsa:To>http://localhost:9000/soap/SimpleStockQuoteService</wsa:To><br><wsa:MessageID>urn:uuid:32748ED82860C9DBDE1177504004875</wsa:MessageID><wsa:Action>urn:getQuote</wsa:Action><br></soapenv:Header><soapenv:Body><m0:getQuote xmlns:m0="http://services.samples/xsd"><m0:request><m0:symbol>IBM</m0:symbol><br></m0:request></m0:getQuote></soapenv:Body></soapenv:Envelope> -[HttpServerWorker-1] DEBUG SendMediator - Send mediator :: mediate() -[HttpServerWorker-1] DEBUG SendMediator - Sending message using implicit message properties.. -[HttpServerWorker-1] DEBUG SendMediator - Sending To: http://localhost:9000/soap/SimpleStockQuoteService -[HttpServerWorker-1] DEBUG SendMediator - SOAPAction: urn:getQuote -[HttpServerWorker-1] DEBUG SendMediator - Body : -<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing" <br>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header><br><wsa:To>http://localhost:9000/soap/SimpleStockQuoteService</wsa:To><br><wsa:MessageID>urn:uuid:32748ED82860C9DBDE1177504004875</wsa:MessageID><wsa:Action>urn:getQuote</wsa:Action></soapenv:Header><br><soapenv:Body><m0:getQuote xmlns:m0="http://services.samples/xsd"><m0:request><m0:symbol>IBM</m0:symbol></m0:request><br></m0:getQuote></soapenv:Body></soapenv:Envelope> -[HttpServerWorker-1] DEBUG Axis2FlexibleMEPClient - sending [add = false] [sec = false] [rm = false] <br>[ to Address: http://localhost:9000/soap/SimpleStockQuoteService] -[HttpClientWorker-1] DEBUG SynapseCallbackReceiver - Synapse received an asynchronous response message -[HttpClientWorker-1] DEBUG SynapseCallbackReceiver - Received To: null -[HttpClientWorker-1] DEBUG SynapseCallbackReceiver - SOAPAction: null -[HttpClientWorker-1] DEBUG SynapseCallbackReceiver - WSA-Action: null -[HttpClientWorker-1] DEBUG SynapseCallbackReceiver - Body : -<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><br><soapenv:Body><soapenv:Envelope><soapenv:Body><ns:getQuoteResponse xmlns:ns="http://services.samples/xsd"><br><ns:return><ns:change>3.9759712191629117</ns:change><ns:earnings>-9.463240695957264</ns:earnings><br><ns:high>97.0893936590198</ns:high><ns:last>93.87052890651084</ns:last><br><ns:lastTradeTimestamp>Wed Apr 25 18:26:46 LKT 2007</ns:lastTradeTimestamp><ns:low>96.4856592398509</ns:low><br><ns:marketCap>5.572519121414568E7</ns:marketCap><ns:name>IBM Company</ns:name><ns:open>-92.43795414108462</ns:open><br><ns:peRatio>-18.381880013551893</ns:peRatio><br><ns:percentageChange>-4.5174961332793435</ns:percentageChange><ns:prevClose>-88.01271991962221</ns:prevClose><br><ns: symbol>IBM</ns:symbol><ns:volume>15381</ns:volume></ns:return></ns:getQuoteResponse></soapenv:Body><br></soapenv:Envelope></soapenv:Body></soapenv:Envelope> -[HttpClientWorker-1] DEBUG SequenceMediator - Sequence mediator <main> :: mediate() -[HttpClientWorker-1] DEBUG AbstractListMediator - Implicit Sequence <SequenceMediator> :: mediate() -[HttpClientWorker-1] DEBUG LogMediator - Log mediator :: mediate() -[HttpClientWorker-1] INFO LogMediator - Envelope: <?xml version='1.0' encoding='utf-8'?><br><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><soapenv:Envelope><soapenv:Body><br><ns:getQuoteResponse xmlns:ns="http://services.samples/xsd"><ns:return><ns:change>3.9759712191629117</ns:change><br><ns:earnings>-9.463240695957264</ns:earnings><ns:high>97.0893936590198</ns:high><ns:last>93.87052890651084</ns:last><br><ns:lastTradeTimestamp>Wed Apr 25 18:26:46 LKT 2007</ns:lastTradeTimestamp><ns:low>96.4856592398509</ns:low><br><ns:marketCap>5.572519121414568E7</ns:marketCap><ns:name>IBM Company</ns:name><ns:open>-92.43795414108462</ns:open><br><ns:peRatio>-18.381880013551893</ns:peRatio><br><ns:percentageChange>-4.5174961332793435</ns:percentageChange><ns:prevClose> ;-88.01271991962221</ns:prevClose><br><ns:symbol>IBM</ns:symbol><ns:volume>15381</ns:volume></ns:return></ns:getQuoteResponse></soapenv:Body></soapenv:Envelope><br></soapenv:Body></soapenv:Envelope> -[HttpClientWorker-1] DEBUG SendMediator - Send mediator :: mediate() -[HttpClientWorker-1] DEBUG SendMediator - Sending message using implicit message properties.. -[HttpClientWorker-1] DEBUG SendMediator - Sending To: null -[HttpClientWorker-1] DEBUG SendMediator - SOAPAction: null -[HttpClientWorker-1] DEBUG SendMediator - Body : -<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><br><soapenv:Body><soapenv:Envelope><soapenv:Body><ns:getQuoteResponse xmlns:ns="http://services.samples/xsd"><br><ns:return><ns:change>3.9759712191629117</ns:change><ns:earnings>-9.463240695957264</ns:earnings><br><ns:high>97.0893936590198</ns:high><ns:last>93.87052890651084</ns:last><br><ns:lastTradeTimestamp>Wed Apr 25 18:26:46 LKT 2007</ns:lastTradeTimestamp><ns:low>96.4856592398509</ns:low><br><ns:marketCap>5.572519121414568E7</ns:marketCap><ns:name>IBM Company</ns:name><ns:open>-92.43795414108462</ns:open><br><ns:peRatio>-18.381880013551893</ns:peRatio><br><ns:percentageChange>-4.5174961332793435</ns:percentageChange><ns:prevClose>-88.01271991962221</ns:prevClose><br><ns: symbol>IBM</ns:symbol><ns:volume>15381</ns:volume></ns:return></ns:getQuoteResponse></soapenv:Body><br></soapenv:Envelope></soapenv:Body></soapenv:Envelope></pre> - -<p></p> +through Synapse. If you execute Synapse in debug mode by editing the +lib/log4j.properties "log4j.category.org.apache.synapse" as "DEBUG" instead +of INFO, you will see more information as follows after a restart and replay +of the above scenario again.</p> +<pre>2007-11-05 15:03:51,082 [127.0.1.1-asankha] [I/O dispatcher 3] INFO PipeImpl Using native OS Pipes for event-driven to stream IO bridging +2007-11-05 15:03:51,206 [127.0.1.1-asankha] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Synapse received a new message for message mediation... +2007-11-05 15:03:51,206 [127.0.1.1-asankha] [HttpServerWorker-1] DEBUG SynapseMessageReceiver Received To: http://localhost:9000/soap/SimpleStockQuoteService +2007-11-05 15:03:51,206 [127.0.1.1-asankha] [HttpServerWorker-1] DEBUG SynapseMessageReceiver SOAPAction: urn:getQuote +2007-11-05 15:03:51,206 [127.0.1.1-asankha] [HttpServerWorker-1] DEBUG SynapseMessageReceiver WSA-Action: urn:getQuote +2007-11-05 15:03:51,206 [127.0.1.1-asankha] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Injecting MessageContext +2007-11-05 15:03:51,207 [127.0.1.1-asankha] [HttpServerWorker-1] DEBUG Axis2SynapseEnvironment Using Main Sequence for injected message +2007-11-05 15:03:51,207 [127.0.1.1-asankha] [HttpServerWorker-1] DEBUG SequenceMediator Start : Sequence <main> +2007-11-05 15:03:51,207 [127.0.1.1-asankha] [HttpServerWorker-1] DEBUG SequenceMediator Sequence <SequenceMediator> :: mediate() +2007-11-05 15:03:51,207 [127.0.1.1-asankha] [HttpServerWorker-1] DEBUG LogMediator Start : Log mediator +2007-11-05 15:03:51,231 [127.0.1.1-asankha] [HttpServerWorker-1] INFO LogMediator To: http://localhost:9000/soap/SimpleStockQuoteService, WSAction: urn:getQuote, SOAPAction: urn:getQuote, ReplyTo: http://www.w3.org/2005/08/addressing/anonymous, MessageID: urn:uuid:DB76240DF26CE9AF1D1194253430879, Direction: request, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:To>http://localhost:9000/soap/SimpleStockQuoteService</wsa:To><wsa:MessageID>urn:uuid:DB76240DF26CE9AF1D1194253430879</wsa:MessageID><wsa:Action>urn:getQuote</wsa:Action></soapenv:Header><soapenv:Body><m0:getQuote xmlns:m0="http://services.samples/xsd"><m0:request><m0:symbol>IBM</m0:symbol></m0:request></m0:getQuote></soapenv:Body></soapenv:Envelope> +2007-11-05 15:03:51,250 [127.0.1.1-asankha] [HttpServerWorker-1] DEBUG LogMediator End : Log mediator +2007-11-05 15:03:51,250 [127.0.1.1-asankha] [HttpServerWorker-1] DEBUG SendMediator Start : Send mediator +2007-11-05 15:03:51,250 [127.0.1.1-asankha] [HttpServerWorker-1] DEBUG SendMediator Sending request message using implicit message properties.. +Sending To: http://localhost:9000/soap/SimpleStockQuoteService +SOAPAction: urn:getQuote +2007-11-05 15:03:51,254 [127.0.1.1-asankha] [HttpServerWorker-1] DEBUG Axis2FlexibleMEPClient Sending [add = false] [sec = false] [rm = false] [ to Address: http://localhost:9000/soap/SimpleStockQuoteService] +2007-11-05 15:03:51,302 [127.0.1.1-asankha] [HttpServerWorker-1] INFO TimeoutHandler This engine will expire all callbacks after : 86400 seconds, irrespective of the timeout action, after the specified or optional timeout +2007-11-05 15:03:51,356 [127.0.1.1-asankha] [HttpServerWorker-1] DEBUG SendMediator End : Send mediator +2007-11-05 15:03:51,356 [127.0.1.1-asankha] [HttpServerWorker-1] DEBUG SequenceMediator End : Sequence <main> +2007-11-05 15:03:51,398 [127.0.1.1-asankha] [HttpClientWorker-1] DEBUG SynapseCallbackReceiver Synapse received an asynchronous response message +2007-11-05 15:03:51,400 [127.0.1.1-asankha] [HttpClientWorker-1] DEBUG SynapseCallbackReceiver Received To: null +2007-11-05 15:03:51,400 [127.0.1.1-asankha] [HttpClientWorker-1] DEBUG SynapseCallbackReceiver SOAPAction: null +2007-11-05 15:03:51,400 [127.0.1.1-asankha] [HttpClientWorker-1] DEBUG SynapseCallbackReceiver WSA-Action: null +2007-11-05 15:03:51,402 [127.0.1.1-asankha] [HttpClientWorker-1] DEBUG SynapseCallbackReceiver Body : +<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns:getQuoteResponse xmlns:ns="http://services.samples/xsd"><ns:return type="samples.services.GetQuoteResponse"><ns:change>4.03627430702446</ns:change><ns:earnings>-9.467701672785129</ns:earnings><ns:high>191.83014686803938</ns:high><ns:last>185.42637586281398</ns:last><ns:lastTradeTimestamp>Mon Nov 05 15:03:51 LKT 2007</ns:lastTradeTimestamp><ns:low>193.2690208751758</ns:low><ns:marketCap>-1737393.107878862</ns:marketCap><ns:name>IBM Company</ns:name><ns:open>-183.2632780777984</ns:open><ns:peRatio>-17.430497030284027</ns:peRatio><ns:percentageChange>1.9749680728382655</ns:percentageChange><ns:prevClose>204.37162314344914</ns:prevClose><ns:symbol>IBM</ns:symbol>< ns:volume>6695</ns:volume></ns:return></ns:getQuoteResponse></soapenv:Body></soapenv:Envelope> +2007-11-05 15:03:51,404 [127.0.1.1-asankha] [HttpClientWorker-1] DEBUG Axis2SynapseEnvironment Injecting MessageContext +2007-11-05 15:03:51,404 [127.0.1.1-asankha] [HttpClientWorker-1] DEBUG Axis2SynapseEnvironment Using Main Sequence for injected message +2007-11-05 15:03:51,404 [127.0.1.1-asankha] [HttpClientWorker-1] DEBUG SequenceMediator Start : Sequence <main> +2007-11-05 15:03:51,404 [127.0.1.1-asankha] [HttpClientWorker-1] DEBUG SequenceMediator Sequence <SequenceMediator> :: mediate() +2007-11-05 15:03:51,404 [127.0.1.1-asankha] [HttpClientWorker-1] DEBUG LogMediator Start : Log mediator +2007-11-05 15:03:51,405 [127.0.1.1-asankha] [HttpClientWorker-1] INFO LogMediator To: http://www.w3.org/2005/08/addressing/anonymous, MessageID: urn:uuid:A6510AF6BD288D8DFB1194253431259544001-942151716, Direction: response, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns:getQuoteResponse xmlns:ns="http://services.samples/xsd"><ns:return type="samples.services.GetQuoteResponse"><ns:change>4.03627430702446</ns:change><ns:earnings>-9.467701672785129</ns:earnings><ns:high>191.83014686803938</ns:high><ns:last>185.42637586281398</ns:last><ns:lastTradeTimestamp>Mon Nov 05 15:03:51 LKT 2007</ns:lastTradeTimestamp><ns:low>193.2690208751758</ns:low><ns:marketCap>-1737393.107878862</ns:marketCap><ns:name>IBM Company</ns:name><ns:open>-183.2632780777984</ns:ope n><ns:peRatio>-17.430497030284027</ns:peRatio><ns:percentageChange>1.9749680728382655</ns:percentageChange><ns:prevClose>204.37162314344914</ns:prevClose><ns:symbol>IBM</ns:symbol><ns:volume>6695</ns:volume></ns:return></ns:getQuoteResponse></soapenv:Body></soapenv:Envelope> +2007-11-05 15:03:51,405 [127.0.1.1-asankha] [HttpClientWorker-1] DEBUG LogMediator End : Log mediator +2007-11-05 15:03:51,405 [127.0.1.1-asankha] [HttpClientWorker-1] DEBUG SendMediator Start : Send mediator +2007-11-05 15:03:51,405 [127.0.1.1-asankha] [HttpClientWorker-1] DEBUG SendMediator Sending response message using implicit message properties.. +Sending To: http://www.w3.org/2005/08/addressing/anonymous +SOAPAction: null +2007-11-05 15:03:51,408 [127.0.1.1-asankha] [HttpClientWorker-1] DEBUG SendMediator End : Send mediator +2007-11-05 15:03:51,408 [127.0.1.1-asankha] [HttpClientWorker-1] DEBUG SequenceMediator End : Sequence <main></pre> <p>You have successfully completed the first part of this guide. Now let's look at the next scenario, proxy services.</p> @@ -422,7 +425,7 @@ <h4>Starting Synapse</h4> <p>We have to start Synapse with a configuration containing a proxy service -definition. In this case we are using the synapse_sample_100.xml, so that you +definition. In this case we are using the synapse_sample_150.xml, so that you don't have to write the configuration your self.</p> <pre><definitions xmlns="http://ws.apache.org/ns/synapse"> <proxy name="StockQuoteProxy"> @@ -458,9 +461,9 @@ <p></p> <div class="command"> -<p>Linux / Unix: . synapse.sh -sample 100</p> +<p>Linux / Unix: . synapse.sh -sample 150</p> -<p>Windows: synapse.bat -sample 100</p> +<p>Windows: synapse.bat -sample 150</p> </div> <p></p> Modified: webservices/synapse/branches/1.1/src/site/resources/Synapse_Samples_Setup.html URL: http://svn.apache.org/viewvc/webservices/synapse/branches/1.1/src/site/resources/Synapse_Samples_Setup.html?rev=591931&r1=591930&r2=591931&view=diff ============================================================================== --- webservices/synapse/branches/1.1/src/site/resources/Synapse_Samples_Setup.html (original) +++ webservices/synapse/branches/1.1/src/site/resources/Synapse_Samples_Setup.html Mon Nov 5 01:30:53 2007 @@ -108,15 +108,15 @@ <p>Synapse ships with a set of working examples that demonstrates some of the basic features and capabilities of Synapse. A set of sample clients and services are provided in addition to the sample configurations, and scripts -are provided to execute the sample scenarions as explained below. </p> +are provided to execute the sample scenarios as explained below. </p> <h4>Pre-requisites</h4> -<p>You will need a Java development kit / JRE version 1.4 or later and Apache -Ant 1.5 or later at a minimum to try out the samples. Ant can be downloaded +<p>You will need a Java development kit version 1.5.x or later and Apache Ant +1.6.5 or later at a minimum to try out the samples. Ant can be downloaded from http://ant.apache.org. The JMS examples could be executed against an -ActiveMQ installation by default (or another JMS provider with configuration) -and any https examples would require a JDK version 1.5 or later.</p> +ActiveMQ installation by default (or another JMS provider with +configuration).</p> <p></p> @@ -129,7 +129,31 @@ <h2>Understanding the samples</h2> -<p></p> +<table border="1" style="width: 100%"> + <caption></caption> + <tbody> + <tr> + <td>Client</td> + <td>Synapse</td> + <td>Service</td> + </tr> + <tr> + <td></td> + <td></td> + <td></td> + </tr> + <tr> + <td>ant stockquote</td> + <td>./synapse.sh -sample <n></td> + <td>SimpleStockQuoteService</td> + </tr> + <tr> + <td></td> + <td></td> + <td>SecureStockQuoteService etc..</td> + </tr> + </tbody> +</table> <p>The above diagram depicts the interactions between the clients, Synapse and services at a high level. The Clients are able to send SOAP/REST or POX @@ -308,12 +332,12 @@ <p>The sample services can be found in the samples/axis2Server/src directory and could be built and deployed using ant from within each service directory</p> -<pre>[EMAIL PROTECTED]:/tmp/synapse-1.0/samples/axis2Server/src/SimpleStockQuoteService$ ant +<pre>[EMAIL PROTECTED]:/tmp/synapse-1.1/samples/axis2Server/src/SimpleStockQuoteService$ ant Buildfile: build.xml ... build-service: .... - [jar] Building jar: /tmp/synapse-1.0/samples/axis2Server/repository/services/SimpleStockQuoteService.aar + [jar] Building jar: /tmp/synapse-1.1/samples/axis2Server/repository/services/SimpleStockQuoteService.aar BUILD SUCCESSFUL Total time: 3 seconds</pre> @@ -373,7 +397,7 @@ <p></p> -<h2>Setting up JMS</h2> +<h2>Setting up the JMS Listener</h2> <p></p> @@ -382,16 +406,12 @@ need to copy the following client JAR files into the Synapse 'lib' folder to support ActiveMQ. These files are found in the 'lib' directory of the ActiveMQ installation.</p> - -<p></p> <ul> <li>activeio-core-3.0.0-incubator.jar</li> <li>activemq-core-4.1.0-incubator.jar</li> <li>geronimo-j2ee-management_1.0_spec-1.0.jar</li> </ul> -<p></p> - <p>To enable the JMS transport, you need to uncomment the JMS transport listener configuration. If you are using a JMS provider other than ActiveMQ this configuration should be updated to reflect your environment. Once @@ -400,7 +420,7 @@ JMS support for the sample Axis2 server the samples/axis2Server/repository/conf/axis2.xml file must be updated.</p> <pre> <!--Uncomment this and configure as appropriate for JMS transport support, after setting up your JMS environment (e.g. ActiveMQ)--> - <transportReceiver name="jms" class="org.apache.axis2.transport.jms.JMSListener"> + <transportReceiver name="jms" class="org.apache.synapse.transport.jms.JMSListener"> <parameter name="myTopicConnectionFactory" locked="false"> <parameter name="java.naming.factory.initial" locked="false">org.apache.activemq.jndi.ActiveMQInitialContextFactory</parameter> <parameter name="java.naming.provider.url" locked="false">tcp://localhost:61616</parameter> @@ -422,15 +442,12 @@ <p></p> - -<h2 id="mailsender">Setting up mail transport sender</h2> +<h2 id="mailsender">Setting up Mail transport sender</h2> <p>To enable the mail transport, you need to uncomment the mail transport -sender configuration in the repository/conf/axis2.xml. Change the mail.smtp.host parameter value -to a working SMTP host.</p> - -<pre> - <!-- ================================================= --> +sender configuration in the repository/conf/axis2.xml. Change the +mail.smtp.host parameter value to a working SMTP host.</p> +<pre> <!-- ================================================= --> <!-- Mail Transport Sender --> <!--Only need to uncomment the sender. Configuration is achieved with every client. At any instant mail host should be given. Sample configuration has been given. @@ -438,12 +455,10 @@ <!-- ================================================= --> <transportSender name="mailto" class="org.apache.axis2.transport.mail.MailTransportSender"> <parameter name="mail.smtp.host">localhost</parameter> - </transportSender> -</pre> + </transportSender></pre> <p></p> - <h2 id="script">Configuring Synapse for Script Mediator support</h2> <p></p> @@ -463,8 +478,8 @@ <h4>Ruby support</h4> <p>For Ruby support you need to download the 'jruby-complete.jar' from the -Maven repository for JRuby, and copy it into the 'lib' folder of Synapse . The -JRuby JAR can be downloaded from <a +Maven repository for JRuby, and copy it into the 'lib' folder of Synapse . +The JRuby JAR can be downloaded from <a href="http://repo1.maven.org/maven2/org/jruby/jruby-complete/">here</a>.</p> <p></p> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
