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


Help: OASIS Mailing Lists Help | MarkMail Help

sca-bindings message

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

Subject: Re: [sca-bindings] sca:endpointReference versus wsa:EndpointReferencefor WS Binding

Hi Luciano,

As I recall we were forced into doing this to resolve a limitation with XML Schema and the use of "xsd:any" leading to a "unique particle attribution" error.



On 03/16/2010 12:19 PM, Luciano Resende wrote:
OF6E1A2F9D.5DD95051-ON852576E8.0067AFC4-882576E8.006A705C@LocalDomain" type="cite">Is there a particular reason why the ws binding schema defines it's own endpointReference element based on wsa:EndpointReferenceType without extending it, instead of just referencing the wsa:EndpointReference directly ?

Here is the snipet from the ws binding xsd :

<complexType name="WebServiceBinding">
            <extension base="sca:Binding">
                    <element name="endpointReference" type="wsa:EndpointReferenceType"
                             minOccurs="0" maxOccurs="unbounded"/>
                    <any namespace="##other" processContents="lax"
                         minOccurs="0" maxOccurs="unbounded"/>
                <attribute name="wsdlElement" type="anyURI" use="optional"/>
                <attribute ref="wsdli:wsdlLocation" use="optional"/>

This requires composites to have the following when configuring the ws binding. Note that although endpointReference is an element defined from sca namespace, we still need to use the child elements based on the wsa namespace.

                <binding.ws wsdlElement="http://helloworld#wsdl.binding(HelloWorldSoapBinding)">
                      <wsa:Address xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8085/services/HelloWorldWebService1</wsa:Address>

[1] http://tools.oasis-open.org/version-control/svn/sca-assembly/SCA_XSDS/sca-binding-ws-1.1-cd04.xsd
[2] http://www.w3.org/2006/03/addressing/ws-addr.xsd

- Luciano

Luciano Resende
Open Source SOA -
Apache Tuscany
4400 N 1st St, San Jose - CA
Luciano Resende/Westford/IBM
internet IBM:
internet ASF:
Personal blog @ developerWorks : link
Apache Tuscany blog:

Great things are not done by impulse but by a series of small things brought together
- Vincent Van Gogh

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