OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

sca-assembly message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [sca-assembly] [NEW ISSUE] Test_ASM_9003.composite contains anincorrect Web service URI


Hi,

The following is extracted from the composite file:

    <component name="TestClient">
                <implementation.composite name="test:TestClient_0002"/>
                <service name="TestInvocation">
                        <interface.wsdl interface="http://test.sca.oasisopen.org/#wsdl.porttype(TestInvocation)"/>
                        <binding.ws/>
                </service>
                <!-- Reference with no @target attribute but with a <binding/> subelement that
                     has a @uri attribute that identifies the target service -->
        <reference name="reference1">
                <binding.ws uri="http://localhost:8080/TestComponent1"/>
        </reference>
        <property name="testName">ASM_9003</property>
    </component>

    <component name="TestComponent1">
                <implementation.composite name="test:TestComposite1"/>
        <service name="Service1">
                <interface.wsdl interface="http://test.sca.oasisopen.org/#wsdl.porttype(Service1)"/>
                <binding.ws/>
        </service>
        <property name="serviceName">service1</property>
    </component>

Does SCA WS Binding or Assembly spec defines how URI is calculated for <binding.ws/> (where @uri is not present)? If not, then the endpoint URI can be derived in a vendor-specific way.

To make sure the reference binding points to the correct service endpoint, should we explicitly defines the uri of the target service as follows?

 <service name="Service1">
                <interface.wsdl interface="http://test.sca.oasisopen.org/#wsdl.porttype(Service1)"/>
                <binding.ws uri="http://localhost:8080/TestComponent1/Service1>/> <!-- Assuming the reference binding uri has been fixed to be http://localhost:8080/TestComponent1/Service1 -->
        </service>

Thanks,
Raymond

Raymond Feng
Senior Software Engineer, Apache Tuscany PMC Member & Committer

IBM Bay Area Lab, 1001 E Hillsdale Blvd, Suite 400, Foster City, CA 94404, USA
E-mail
:
rfeng@us.ibm.com, Notes: Raymond Feng/Burlingame/IBM, Tel: 650-645-8117, T/L: 367-8117
Apache Tuscany
:
http://tuscany.apache.org




From: Mike Edwards <mike_edwards@uk.ibm.com>
To: "OASIS Assembly" <sca-assembly@lists.oasis-open.org>
Date: 08/04/2009 06:11 AM
Subject: [sca-assembly] [NEW ISSUE] Test_ASM_9003.composite contains an incorrect Web service URI






Raiser:                Simon Laws


Target:                sca-assembly-1.1-testcases-cd01


Description:


Test_ASM_9003.composite has a <binding.ws/> on Component = TestClient, Reference = reference1

and that binding.ws has @uri as follows:


uri
="http://localhost:8080/TestComponent1"

This is incorrect as the target service is not at this address.


Proposal:


Change the @uri of the <binding.ws/> element to:


uri
="http://localhost:8080/TestComponent1/Service1"


Yours,  Mike.

Strategist - Emerging Technologies, SCA & SDO.
Co Chair OASIS SCA Assembly TC.
IBM Hursley Park, Mail Point 146, Winchester, SO21 2JN, Great Britain.
Phone & FAX: +44-1962-818014    Mobile: +44-7802-467431  
Email:  mike_edwards@uk.ibm.com





Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU







[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]