Hi, You declare the reference in your component implementation code such as:
@Reference protected AdddressService addresssService; By default, the reference name will be the field name or the property name if you use the setter pattern. In your case, it's "addressService". Then you configure the reference in the composite file. The @name of the <reference> should be "addressService". Thanks, Raymond From: Abraham Washington Sent: Thursday, July 10, 2008 10:42 AM To: [email protected] Subject: reference / binding.ws hi all, i'm trying the sca/reference way to invoke a service. the service resides on a separate server, deployed in a war. i have created a new composite and would like to invoke the other service, so i created a reference to it. within my composite i have: <component name="OrganizationComponent"> <implementation.spring location="...."/> <service name="OrgService"/> <reference name="AddressService"> <binding.ws uri="http://remote.host.name.com:8080/address-service/AddressService"/> </reference> </component> when i deploy my composite, it tells me the reference is not valid. i'm not sure how to go about declaring the @Reference in my org service. i could do something like: @Reference AddressService addressService; but, i don't have the class related to the address service within my org service war. so, i'm a little lost on this. not sure if i'm heading down the wrong path. thx abe
