Hi, I'm playing with itest-callback-basic-ws with different ways to specify <callback> for the service element. The following are what I found:
<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912" targetNamespace="http://callback" name="CallBackBasicTest"> <component name="CallBackBasicClient"> <implementation.java class="org.apache.tuscany.sca.test.CallBackBasicClientImpl"/> <reference name="aCallBackService" target="CallBackBasicService"> <callback> <binding.ws uri="http://localhost:8084/aCallBackService"/> </callback> </reference> </component> <component name="CallBackBasicService"> <implementation.java class="org.apache.tuscany.sca.test.CallBackBasicServiceImpl"/> <service name="CallBackBasicService"> <binding.ws uri="http://localhost:8085/CallBackBasicService"/> <!-- callback --> </service> </component> </composite> 1) It works without callback element. From the debugger, it seems that we use the <binding.sca> to call back. Should we use the reference side callback binding instead? 2) empty callback/binding.ws doesn't work: (the callback binding uri is null, not trying to bind to the uri from the reference side callback binding). This used to work in 1.x. <callback> <binding.ws/> </callback> 3) callback/binding.ws with explicit URI works: <callback> <binding.ws uri="http://localhost:8084/aCallBackService"/> </callback> What's the right expectation here? Thanks, Raymond ________________________________________________________________ Raymond Feng [email protected] Apache Tuscany PMC member and committer: tuscany.apache.org Co-author of Tuscany SCA In Action book: www.tuscanyinaction.com Personal Web Site: www.enjoyjava.com ________________________________________________________________
