On Fri, Jun 25, 2010 at 6:01 PM, Raymond Feng <[email protected]> wrote: > Hi, > This is actually a very question. Are you proposing a URI "template" idea > that we can use to represent the binding endpoint (with some parameters can > be replaced by the hosting environment)? Please tell us a bit more your use > case. > I started a wiki page before trying to understand the need for the service > binding to control which IP address the service will listen on for a > multi-homed machine. It might be related to this discussion too. > https://cwiki.apache.org/confluence/display/TUSCANYWIKI/IP+addresses+for+service+bindings > 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 > ________________________________________________________________ > On Jun 25, 2010, at 6:58 AM, Ruault Gaetan wrote: > > > Hi, > > Is it possible to use properties in SCA composite with something like this > ?: > > > <sca:binding.ws uri="http://$HOST_NAME:$PORT/SituationPersonne"/> > > > > thanks > > Gaetan >
Mike made changes in Tuscany to allow this to be done with DTDs so he could parameterize the WS otest composites. Here's an example composite [1] and the projects that contains and configures it [2], look for the .dtd [3]. So if the DTD approach suits this could help you. Simon [1] http://tools.oasis-open.org/version-control/browse/wsvn/sca-bindings/TestCases_BWS/BWS_General/src/main/resources/Test_BWS_4004.composite [2] http://tools.oasis-open.org/version-control/browse/wsvn/sca-bindings/TestCases_BWS/BWS_General/src/main/resources/#_TestCases_BWS_BWS_General_src_main_resources_ [3] http://tools.oasis-open.org/version-control/browse/wsvn/sca-bindings/TestCases_BWS/BWS_General/src/main/resources/sca_variables.dtd -- Apache Tuscany committer: tuscany.apache.org Co-author of a book about Tuscany and SCA: tuscanyinaction.com
