Krishnakumar B wrote:
I am trying to get a reference to a external web service in a SCA module.

I am always getting a error

SEVERE: Error deploying web application archive Testwebclient.war
org.apache.tuscany.model.assembly.AssemblyInitializationException: Undefined ref
erence [CarRentalManagerService]

My SCA module file is

<module xmlns="http://www.osoa.org/xmlns/sca/0.9";
xmlns:v="http://www.osoa.org/xmlns/sca/values/0.9";
    name="biztech.webclient">

   <import.wsdl wsdlLocation="wsdl/CarRentalManagerService.wsdl"/>

   <component name="LoginServiceComponent">
       <implementation.java
class="com.test.biztech.client.sca.SimpleLoginServiceImpl"/>
       <references>
<v:CarRentalManagerService>CarRentalManagerService</v:CarRentalManagerService>
       </references>
   </component>

   <externalService name="CarRentalManagerService">
       <interface.wsdl
interface="http://carrental.test.com#wsdl.interface(CarRentalManagerSEI)"/>
       <binding.ws
port="http://carrental.test.com#wsdl.endpoint(CarRentalManagerService/CarRentalManagerSEI)"/>
   </externalService>

</module>

the Module Impl class has a @Reference [ SimpleLoginServiceImpl ]

@Reference
   public void setCarRentalManagerSEI(CarRentalManagerSEI
carRentalManagerSEI) {
       this.carRentalManagerSEI = carRentalManagerSEI;
   }


Any help would be amazing as i am stuck on this.

Regards
Krish


Hi,

Which level of Tuscany are using?

Your implementation class says:
@Reference
public void setCarRentalManagerSEI(CarRentalManagerSEI carRentalManagerSEI)
which will declare a reference named carRentalManagerSEI.

Can you try to change your module file as follows:
      <references>
<v:carRentalManagerSEI>CarRentalManagerService</v:carRentalManagerSEI>
      </references>

Hope this helps.

--
Jean-Sebastien


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to