W3C home > Mailing lists > Public > public-ws-semann@w3.org > December 2006

Re: Comment from Ajith Ranabahu

From: Laurent Henocque <laurent.henocque@gmail.com>
Date: Tue, 12 Dec 2006 11:10:54 +0100
Message-ID: <457E802E.407@gmail.com>
To: public-ws-semann@w3.org
The current SAWSDL specification can potentially be used for external
annotations as well.
The idea would be to abstract the target WSDL file from all non
externally annotated elements. What remains can be annotated using the
standard modelReference and schemaMapping constructs. The working result
is obtained by merging the original file with the external annotation,
which remains compatible with the rule that all annotations apply.

I am proposing an example of this in attachment and at
http://laurent.henocque.free.fr/sawsdl/external.html
as a concrete proposal to issue 13 in LC-20060928
http://www.w3.org/2002/ws/sawsdl/issues/LC-20060928.html#x13

Below is an excerpt from my proposal: the (candidate) external
annotation of the WSDL presented as a leading example in Section 1.4 of
the SAWSDL LC-20060928
http://www.w3.org/TR/sawsdl/

Only the relevant xml structure is preserved in the external annotation:

<wsdl:description
  targetNamespace="http://www.w3.org/2002/ws/sawsdl/spec/wsdl/order#"
  xmlns="http://www.w3.org/2002/ws/sawsdl/spec/wsdl/order#"
  xmlns:wsdl="http://www.w3.org/2006/01/wsdl"
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
  xmlns:sawsdl="http://www.w3.org/2002/ws/sawsdl/spec/sawsdl#">

  <wsdl:types>
    <xs:schema targetNamespace="http://www.w3.org/2002/ws/sawsdl/spec/wsdl/order#">
      <xs:element name="OrderRequest"
          sawsdl:modelReference="http://www.w3.org/2002/ws/sawsdl/spec/ontology/purchaseorder#OrderRequest"
          sawsdl:loweringSchemaMapping="http://www.w3.org/2002/ws/sawsdl/spec/mapping/RDFOnt2Request.xml">
      </xs:element>
      <xs:simpleType name="confirmation"
          sawsdl:modelReference="http://www.w3.org/2002/ws/sawsdl/spec/ontology/purchaseorder#OrderConfirmation">
      </xs:simpleType>
    </xs:schema>
  </wsdl:types>

  <wsdl:interface name="Order"
      sawsdl:modelReference="http://example.org/categorization/products/electronics">
    <wsdl:operation name="order" pattern="http://www.w3.org/2006/01/wsdl/in-out"
        sawsdl:modelReference="http://www.w3.org/2002/ws/sawsdl/spec/ontology/purchaseorder#RequestPurchaseOrder">
    </wsdl:operation>
  </wsdl:interface>
</wsdl:description>


(please forgive me for probable namespace errors)

Laurent



Received on Tuesday, 12 December 2006 10:11:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 17 April 2012 12:14:27 GMT