[ https://issues.apache.org/jira/browse/TUSCANY-2305?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vamsavardhana Reddy updated TUSCANY-2305: ----------------------------------------- Patch Info: [Patch Available] Assignee: (was: Vamsavardhana Reddy) Marking patch available and unassigning. > vtests for service binding.ws > ----------------------------- > > Key: TUSCANY-2305 > URL: https://issues.apache.org/jira/browse/TUSCANY-2305 > Project: Tuscany > Issue Type: Bug > Components: Java SCA Verification Tests > Reporter: Vamsavardhana Reddy > Fix For: Java-SCA-Next > > Attachments: TUSCANY-2305-2.patch, TUSCANY-2305.patch > > > Create vtests for service webservice binding as per Web Service Binding > Specification Spec v1.00 - Sec 2.1 and 2.1.1 - lines 26 to 85: > ----- > 26 2.1 Web Service Binding Schema > 27 The Web Service binding element is defined by the following pseudo-schema. > 28 <binding.ws wsdlElement="xs:anyURI"? > 29 wsdli:wsdlLocation="list of xs:anyURI"? > 30 ...> > 31 <wsa:EndpointReference>...</wsa:EndpointReference>* > 32 ... > 33 </binding.ws> > 34 > 35 • /binding.ws/@wsdlElement - optional attribute that specifies the URI of > a WSDL element. > 36 The use of this attribute indicates that the SCA binding points to the > specified element in an > 37 existing WSDL document. The URI can have the following forms: > 38 o Service: > 39 <WSDL-namespace-URI>#wsdl.service(<service-name>) > 40 In this case, all the endpoints in the WSDL Service that have equivalent > PortTypes with > 41 the SCA service or reference must be available to the SCA service or > reference. > 42 o Port (WSDL 1.1): > 43 <WSDL-namespace-URI>#wsdl.port(<service-name>/<port-name>) > 44 In this case, the identified port in the WSDL 1.1 Service must have an > equivalent > 45 PortType with the SCA service or reference. > 46 o Endpoint (WSDL 2.0): > 47 <WSDL-namespace-URI>#wsdl.endpoint(<service-name>/<endpoint-name>) > 48 In this case, the identified endpoint in the WSDL 2.0 Service must have an > equivalent > 49 PortType with the SCA service or reference. > 50 o Binding: > 51 <WSDL-namespace-URI>#wsdl.binding(<binding-name>) > 52 In this case, the identified WSDL binding must have an equivalent PortType > with the SCA > 53 service or reference. In this case the endpoint address URI for the SCA > service or > 54 reference must be provided via the URI attribute on the binding. > 55 • /binding.ws/@wsdli:wsdlLocation - optional attribute that specifies the > location of the > 56 WSDL document. This attribute can be specified in the event that the > <WSDL-namespace- > 57 URI> in the 'endpoint' attribute is not dereferencable, or when the > intended WSDL document > 58 is to be found at a different location than the one pointed to by the > <WSDL-namespace- > 59 URI>. The use of this attribute indicates that the WSDL binding points to > an existing WSDL > 60 document. > 61 • /binding.ws/wsa:EndpointReference - optional WS-Addressing [6] > EndpointReference > 62 that specifies the endpoint for the service or reference. When this > element is present along > 63 with the wsdlElement attribute on the parent element, the wsdlElement > attribute value MUST > 64 be of the 'Binding' form as specified above, i.e. <WSDL-namespace- > 65 URI>#wsdl.binding(<binding-name>). > 66 • /binding.ws/@{any} - this is an extensibility mechanism to allow > extensibility via > 67 attributes. > SCA Service Component Architecture > WS Binding Specification V1.00 March 2 3 007 > 68 • /binding.ws/any - this is an extensibility mechanism to allow > extensibility via elements. > 69 > 70 2.1.1 Endpoint URI resolution > 71 The rules for resolving the URI at which an SCA service is hosted, or SCA > reference targets, > 72 when used with binding.ws (in precedence order) are: > 73 1. The URIs in the endpoint(s) of the referenced WSDL > 74 or > 75 The URI specified by the wsa:Address element of the wsa:EndpointReference, > 76 2. The explicitly stated URI in the "uri" attribute of the binding.ws > element, which may be > 77 relative, > 78 3. The implicit URI as defined by the Assembly specification > 79 The URI in the WSDL endpoint or in the wsa:Address of an EPR may be a > relative URI, in which > 80 case it is relative to the URI defined in (2) or (3). The wsa:Address > element can be the empty > 81 relative URI, in which case it uses the URI defined in (2) or (3) > directly. This allows the EPR > 82 writer to specify reference parameters, metadata and other EPR contents > while allowing the URI > 83 to be chosen by the deployer. > 84 To reference a WSDL document and also specify an EPR, the wsdlElement > attribute must refer to > 85 a binding element in the WSDL and not an endpoint or service. > ----- -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.