Now that you point it out i agree, the sample is a little confusing. I think
this is partially historical from when we did not have separate integration
tests in Tuscany so code was included within the samples for testing.

I think we could make it clearer with some renames like:
- rename HelloWorldClient.java to HelloWorldClientRunner.java
- rename HelloWorldService.java to HelloWorldClient.java
- rename HelloWorldServiceComponent.java to HelloWorldClientComponent.java
- change helloworldwsclient.composite to have only a single component and
removing the seperate reference
- remove the wsdl file as Tuscany's wsdl generation from interfaces works
fine now
- make it clearer in the README that to use the sample you need to also have
the helloworld-ws-service running for the external web service

Would that help making it clearer?

   ...ant

On Tue, Jul 15, 2008 at 3:44 PM, Abraham Washington <[EMAIL PROTECTED]>
wrote:

> thx Luciano for the info.  i took a look at the helloworld-ws-reference
> sample.   it's a little confusing.  it uses a reference to a service
> (HelloWorld), but there's also a class that's created (not generated) called
> HelloWorldService.  there's also a helloworld.wsdl document in resources.
> not sure what that is for?
>
>
>
> i don't see an example where a reference is to a service that's external
> (or maybe i'm not understanding something, which is a real possibility).
>
>
>
> thx abe
>
>
> ----- Original Message ----
> From: Luciano Resende <[EMAIL PROTECTED]>
> To: [email protected]
> Sent: Monday, July 14, 2008 6:15:20 PM
> Subject: Re: invoke external sca service
>
> You could use a tool like wsdl2java to generate the stubs if you don't
> have them. If you are using maven, Tuscany also have a wsdl2java
> plugin that generates the necessary artifacts for you. Please take a
> look at the helloworld-ws-service and helloworld-ws-reference sample
> applications.
>
> On Mon, Jul 14, 2008 at 12:46 PM, Abraham Washington
> <[EMAIL PROTECTED]> wrote:
> > hi,
> >
> >    i have an sca service exposed as a web service (binding.ws).  i'm
> trying
> > to connect to it from another sca domain as a reference.  i defined the
> > wsdlElement in my reference.  but, when I make the declaration:
> >
> > @Reference
> > AddressService addressService;
> >
> >
> > in my component implementation class, the build fails looking for that
> > class.  how can i handle this?  do i need to generate the stubs from the
> > wsdl?  or ?  below is my component with the reference to the external sca
> > domain.  i can view the wsdl from the location as well.
> >
> >
> > <
> >
> > component name="OrgServiceComponent">
> >
> > <implementation.spring location="Organization-spring-context.xml"/>
> >
> > <service name="OrgService"/>
> >
> > <reference name="AddressService"
> > promote="OrgServiceComponent/addressService">
> >
> > <binding.ws
> > wsdlElement="
> http://192.168.1.7:8080/address-service-composite/AddressService?wsdl.service
> (AddressService)"/>
> >
> > </reference>
> >
> > </component>
> >
> >
> >
> >
> >
> >
> >
> > thx abe
> >
>
>
>
> --
> Luciano Resende
> Apache Tuscany Committer
> http://people.apache.org/~lresende <http://people.apache.org/%7Elresende>
> http://lresende.blogspot.com/
>
>

Reply via email to