You are right, the client doesn't need to implement the service interface.
Thats what all the renames and cleanup of the sample would fix to make it
less confusing.
...ant
On Wed, Jul 16, 2008 at 3:32 AM, Abraham Washington <[EMAIL PROTECTED]>
wrote:
> hi all...this is where i'm getting lost. in the helloworld-ws-reference,
> class HelloWorldServiceComponent. This is the definition of the class:
>
>
> public class HelloWorldServiceComponent implements *HelloWorldService* {
>
> *HelloWorldService* helloWorldService;
>
> .....
>
> }
>
>
> are the 2 classes in bold the same class (which resides in the same
> package)? all HelloWorldService has is a main method, so I'm not sure why
> HelloWorldServiceComponent needs to implement it?
>
> thx abe
>
>
>
> ----- Original Message ----
> From: ant elder <[EMAIL PROTECTED]>
> To: [email protected]
> Sent: Tuesday, July 15, 2008 9:08:37 AM
> Subject: Re: invoke external sca service
>
> 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/
>>
>>
>
>