DAML and SOAP

Hi all

Is it possible to use DAML
classes/ properties to
describe a SOAP message header
and body?
For instance saying something
similar for instance?

<daml:class
rdf:ID="SOAPEnvelope">
 <rdfs:subclassOf
rdf:resource="#Message"/><!-Me
ssage is some root, defined
elsewhere -->
</daml:class>

<daml:class
rdf:ID="SOAPheader">
 <rdfs:domain
rdf:resource="Message"/>
  <rdfs:range
rdf:resource="SOAPEnvelope"/>
</daml:class>

<daml:class rdf:ID="SOAPbody">
 <rdfs:domain
rdf:resource="Message"/>
  <rdfs:range
rdf:resource="SOAPEnvelope"/>
</daml:class>

<daml:DatatypeProperty
rdf:ID="hasHeader">
   <rdfs:domain
rdf:resource="SOAPheader"/>
   <rdfs:range
rdf:resource="#String"/>
</daml:DatatypeProperty>

<daml:DatatypeProperty
rdf:ID="hasBody">
   <rdfs:domain
rdf:resource="SOAPbody"/>
   <rdfs:range
rdf:resource="#String"/>
</daml:DatatypeProperty>

The problem I am seeing is
that both header and body are
not just strings but xml
too... So maybe this would
need more granular description
in terms of classes or
properties.
Also what can be done if one
wants to state that SOAPbody
is the same as the actual
<SOAP:BODY>...similarly for
the SOAP:ENVELOPE tag would
this be possible?

Thanks for any help

Cicho



Charlie

Received on Wednesday, 20 February 2002 14:29:46 UTC