Thank you very much for your links. I followed the detailed tutorial http://wso2.org/library/1719, I created the a simple web service to sum two numbers. I generated, with the Axis2 Server Archiver plugin for Eclipse, the file * SumCalculator.aar*, I put it in the directory %SYNAPSE_HOME%\samples\axis2Server\repository\services in order to have it available to the internal Synapse Axis2. In fact running %SYNAPSE_HOME%\samples\*axis2Serveraxis2server.bat* I get the service at
http://localhost:9000/soap/SumCalculator so when I wrote the SumCalculatorServiceClient I create the stub in this way: *stub = new SumCalculatorStub("http://localhost:9000/soap/SumCalculator");* [ and NOT referring to TomCat stub = new SumCalculatorStub(" http://localhost:8080/axis2/services/SumCalculator"); ]. I can run the client normally (within Eclipse or in a console with a JAR of the entire project including the client): it establishes the connection with the service endpoint and then it returns the correct result. Now my questions are: *1)* when I run my project it is necessary that axis2server.bat is running, but Synapse can be down. How can I see the request-response flow through Synapse? (like SimpleStockQuoteService showed in http://synapse.apache.org/Synapse_QuickStart.html) *2)* I controlled the structure of SimpleStockQuoteService: the project of the service is in %SYNAPSE_HOME%\samples\axis2Server\src, the client of this service is the complete directory %SYNAPSE_HOME%\samples\axis2Client? How can I generate a client like this for my simple service? (in order to run my service like a normale service in one ESB like SimpleStockQuote) *3)* I considered also the link by asankha http://adroitlogic.org/knowledge-base-axis2/10-soap-over-jms-with-apache-axis2.html . I generated a correct client from my WSDL, but I don't understand how to execute this client whit Ant and the command "[java]". How can I use Ant to build and execute the my SumCalculatorServiceClient? (like the sample TestClient showed in the link) Thanks *Pasquale* 2009/1/3 Hiranya Jayathilaka <[email protected]> > Hi Pasquale, > FYI, you can learn more about developing Axis2 Web Services with Eclipse > from [1] and [2]. As Asanka has pointed out you cannot just develop a > service using the Eclipse WS framework and deploy it into Axis2. You need > to > use the correct set of plug-ins and libraries when developing the service. > You can learn all about it by going though [1] and [2]. > > Hope this helps. Have a great 2009! > > Thanks > > Best Regards, > Hiranya > > [1] - > > http://www.eclipse.org/webtools/community/tutorials/BottomUpAxis2WebService/bu_tutorial.html > [2] - http://wso2.org/library/1719 > > > > On Fri, Jan 2, 2009 at 11:48 PM, Asankha C. Perera <[email protected] > >wrote: > > > Hi Pasquale > > > >> I created within Eclipse a fast and simple web service, it sums two > >> numbers. > >> I followed and adapted this instructions: > >> > >> > >> > http://www.eclipse.org/webtools/jst/components/ws/1.5/tutorials/BottomUpWebService/BottomUpWebService.html > >> [ > >> > http://www.eclipse.org/webtools/jst/components/ws/1.5/tutorials/index.html > >> ]. > >> > >> I deployed that web service using TomCat 5.5 within Eclipse. Now I have > >> the > >> client with JSP files at http://localhost:8080/SumWSClient. > >> > >> > > I am not familiar with Eclipse web services/tools.. however, if this is a > > standard web service it might have a WSDL. You could use Apache Axis2 to > > generate a client for your service using this WSDL. See standard Axis2 > > client documentation or the 'Generating a sample client' in [1] to see > how > > you could do this > > > >> SimpleStockQuoteService is a web service called by a client > >> in the way I see in Synapse QuickStart > >> http://synapse.apache.org/Synapse_QuickStart.html [?] > >> > >> In the same way, how can I call and use my simple web service with Ant > and > >> Synapse? > >> I tried to copy my project in <synapse_home>\samples\axis2Server\src and > >> modify configuration files, but I got nothing. > >> > >> Can you give me some explanation? > >> > >> > > I do not think Eclipse WS stuff is based on Apache Axis2.. so that > probably > > explains why you see nothing.. the SimpleStockQuoteService and the client > > are pure Apache Axis2 sample service/client used to show the operation of > > Synapse with web services > > > > cheers > > asankha > > > > [1] > > > http://adroitlogic.org/knowledge-base-axis2/10-soap-over-jms-with-apache-axis2.html > > > > -- > > Asankha C. Perera > > http://adroitlogic.org > > > > http://esbmagic.blogspot.com > > > > >
