Hello Ant I have tried with this binding but it doesn't work. I have used the following composite file to describe SCA client invoking the web service. I think there is something wrong in it but I don't know what.
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" targetNamespace="http://helloworld" xmlns:hw="http://helloworld" name="helloworldwsclient"> <!-- A component with an embedded reference definition connecting to an external webservice The wsdl interface for the reference is derived from the information specified by the 'wsdlElement' --> <component name="HelloTuscanyServiceComponent"> <implementation.java class="helloworld.HelloWorldServiceComponent"/> <reference name="HelloWorldService"> <binding.ws uri="http://localhost:8080/axis/HelloWorldService"/> </reference> </component> <!-- A component with a reference promoted as a composite reference --> <component name="HelloWorldServiceComponent"> <implementation.java class="helloworld.HelloWorldServiceComponent"/> </component> <reference name="HelloWorldService"> <binding.ws uri="http://localhost:8080/axis/HelloWorldService"/> </reference> </composite> 2008/10/31 ant elder <[EMAIL PROTECTED]> > > > On Thu, Oct 30, 2008 at 4:24 PM, fahim salim <[EMAIL PROTECTED]> wrote: > >> Hello All >> >> I have some problems understanding how to use a web service from an SCA >> component. >> >> For example I'm using a web service which is running under Axis/Tomcat on >> localhost >> The service is : >> >> //HelloWorldService >> public class HelloWorldService { >> public String getGreetings(String name) { >> return "Hello " + name; >> } >> } >> >> I can read the wsdl at the url >> http://localhost:8080/axis/HelloWorldService.jws?wsdl >> >> How should I use the sample helloworld-ws-reference in order to use this >> service ? >> >> I'm little bit confused with the files in this sample project. >> For example, do I need the wsdl file in order to use the web service ? >> Or is it enough to change the composite file ? >> But what should be the line corresponding to <binding.ws> ? >> Is it something like <binding.ws wsdlElement=" >> http://localhost:8080/axis#wsdl.endpoint(HelloWorldService/HelloWorldServiceSoapBinding)<http://localhost:8080/axis#wsdl.endpoint%28HelloWorldService/HelloWorldServiceSoapBinding%29>"/> >> ? >> >> Thanks >> Fahim >> > > The wsdlElement attribute would only work if you're including the wsdl file > with your client, you may not need to do that and <binding.ws uri=" > http://localhost:8080/axis/HelloWorldService" /> should also work if the > client interface matches whats expose with an Axis2 JWS. > > ...ant > >
