I would like to ask a question about obtaining references to SCA Services.
Let me explain our scenario.
I have a SCA component (WSDL Interface, Java implementation) in which I declare a reference to another Service with WebService binding through the @Reference annotation. The component of this second Service has also WebService (only) binding.
Inside the implementation of my first component I have calls to other classes and methods. Inside of them I need to call the reference of the second Service.
I tried to access the service reference with the following line of code:
LoggingPortType service = context.getService(LoggingPortType.class, "LoggingComponent/LoggingPortType");
But reading some documentation and redbooks, I discovered that this code only works for components with SCA binding.
My question is: is there any other way to obtain a reference of a Service, with Webservice (only) binding in a similar fashion of the code above?