Hello, I have been now slowly becoming familiar with using tuscany and still am a newbie. What I am trying to achieve is to have a webservice call from within a component. The webservice that I have is deployed in tomcat and has been developed using AXIS2.
I have been following the sample composite file given at http://tuscany.apache.org/sca-java-user-guide.html#SCAJavaUserGuide-TuscanySCADomain. At this URL there is a mention as what needs to be done if a SCA component reference has to be replaced with a webservice reference. I am pasting the suggested way to refer to the addService WS here: <component name="CalculatorServiceComponent"> <implementation.java class="calculator.CalculatorServiceImpl"/> <reference name="addService" > <interface.java interface="calculator.AddService" /> <binding.ws uri="http://localhost:8080/axis2/services/Add"/> </reference> </component> If I follow similar steps I run into trouble. The following are the reasons why I am running into issues and am unclear how to handle: 1. To consume AXIS2 webservices on the clientside ( lets say a Java webservice client ), we get the stubs from the WSDL and then call methods on stubs to make the webservice call. SO now the question is do i get the stubs of the WSDL and make it available to the component? ( This works ) 2. Trying to following the sample at the URL above, I see that the interface element is asking for a interface attribute and i am unsure as what that would be in case of my AXIS2 webservice that is hosted on a tomcat server. I can get stubs but none of the stub related files are a interface. 3. The above example also hints me that something like below should work: ( but i havent been able to find a way to get this to work ) public class CalculatorServiceImpl implements CalculatorService { private AddService addService; @Reference public void setAddService(AddService addService) { this.addService = addService; } } The "addservice" above should ideally resolve to the webservice reference that is defined in the composite file ( as described above ). Please advice or point me to a resource that can help me. Thanks Venkat _________________________________________________________________ Stay up to date on your PC, the Web, and your mobile phone with Windows Live http://clk.atdmt.com/MRT/go/119462413/direct/01/
