Phil
Let me detail out the steps I followed just a while ago to test the
sample service/s with the latest Axis2 RC2
0) Update my Synapse checkout to the latest (the revision was 473910)
and perform a "maven clean release" using JDK 1.5.0_06 on WinXP (I've
placed this build here
http://people.apache.org/~asankha/Apache-Synapse-Incubating-SNAPSHOT-bin.zip
in-case you want to pick it up)
1) Downloaded Axis2 RC2 from
http://people.apache.org/~thilina/axis2/1.1-RC2/axis2-1.1-RC2.zip and
extracted into c:\java\axis2-1.1-RC2
2) Edited the Axis2 conf\axis2.xml's http port from 8080 to 9000 (as
expected by Synapse)
3) Extracted Apache-Synapse-Incubating-SNAPSHOT-bin.zip into
C:\Java\SynapseDist
4) Build the SimpleStockQuoteService from
C:\Java\SynapseDist\synapse\samples\services\SimpleStockQuoteService>ant
5) Deploy the SimpleStockQuoteService.aar built into the Axis2
repository (i.e. copy it into C:\Java\axis2-1.1-RC2\repository\services)
6) Start off Axis2 with C:\Java\axis2-1.1-RC2\bin>axis2server.bat and
make sure it starts on port 9000. Verify that the service is available
at http://localhost:9000/axis2/services/
7) Start Synapse using default (sample) configuration
C:\Java\SynapseDist\synapse\bin>start synapse.bat and see that it
started up on port 8080
8) Try first sample from C:\Java\SynapseDist\synapse\samples>ant stockquote
C:\Java\SynapseDist\synapse\samples>ant stockquote
Buildfile: build.xml
init:
[mkdir] Created dir: C:\Java\SynapseDist\synapse\samples\target\classes
compile:
[javac] Compiling 12 source files to
C:\Java\SynapseDist\synapse\samples\target\classes
stockquote:
[java] Standard :: Stock price = $158.50015410107443
BUILD SUCCESSFUL
Total time: 12 seconds
On the Synapse side, you should see debug level log messages which would
show you the message flow that took place.
On Axis2 you should see a log message that a stock quote has been generated
Sun Nov 12 15:37:39 IST 2006 :: Generating quote for : IBM
Let me know if you have go this to work, and which exact sample or
scenario that you are trying out, and I would help you on any issues. If
you are trying to build a custom scenario and have a synapse.xml or a
description on what you want to achieve, I could try that too and let
you know whats going wrong.
asankha
Phil Steitz wrote:
Still no luck getting this to work. I am still learning how both
Synapse and Axis2 work, but my simple attempts at getting transports
and forwarding set up led to either looping or faults.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]