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