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://lresende.blogspot.com/



      

Reply via email to