The actual Web service endpoint used depends on whether or not WSDL document has beed referenced and a WSDL port has been specified, if the EndpointReference element or the uri attribute of the <binding.ws> has been specified, or the names of the component and binding. The actual alogrythim defined in the Web service binding specification is: The rules for resolving the URI at which an SCA service is hosted, or SCA reference targets, when used with binding.ws (in precedence order) are: - Either the URIs in the endpoint(s) of the referenced WSDL
or the URI specified by the wsa:Address element of the wsa:EndpointReference - The explicitly stated URI in the "uri" attribute of the binding.ws element, which may be relative,
- The implicit URI as defined by the Assembly specification
The URI in the WSDL endpoint or in the wsa:Address of an EPR may be a relative URI, in which case it is relative to the URI defined in (2) or (3). The wsa:Address element can be the empty relative URI, in which case it uses the URI defined in (2) or (3) directly. This allows the EPR writer to specify reference parameters, metadata and other EPR contents while allowing the URI to be chosen by the deployer. To reference a WSDL document and also specify an EPR, the wsdlElement attribute must refer to a binding element in the WSDL and not an endpoint or service. |