0
|
1 <?xml version="1.0"?>
|
|
2 <application targetNamespace="http://wadl.dev.java.net/2009/02"
|
|
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
4 xsi:schemaLocation="http://wadl.dev.java.net/2009/02 wadl.xsd"
|
|
5 xmlns:tns="TempforXSD"
|
|
6 xmlns:sawadl="http://www.w3.org/2002/ws/sawadl/spec/sawadl#"
|
|
7 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
|
8 xmlns:Ontology1="http://www.owl-ontologies.com/sws_challenge.owl"
|
|
9 xmlns="http://wadl.dev.java.net/2009/02">
|
|
10 <grammars>
|
|
11 <include
|
|
12 href="3A4_Simplified_PurchaseOrderRequest.xsd" sawadl:modelReference="Ontology1#PurchaseOrderRequest"/>
|
|
13 <include
|
|
14 href="AcknowledgementOfReceipt.xsd" sawadl:modelReference="Ontology1#PurchaseOrderAck"/>
|
|
15 </grammars>
|
|
16
|
|
17 <resources base="http://MoonSemanticTemplate.com/">
|
|
18 <resource path="placeorder" sawadl:modelReference="Ontology1#ResourceCategory">
|
|
19 <method name="POST" id="order" sawadl:modelReference="Ontology1#PurchaseRequest">
|
|
20 <sawadl:precondition expression="placeOrder"/>
|
|
21 <request sawadl:modelReference="Ontology1#PurchaseOrder">
|
|
22 <param name="user" style="query" type="xsd:string" required="true">
|
|
23 <doc title="prompt">Min Molecular Weight (Daltons)</doc>
|
|
24 </param>
|
|
25 <param name="cost" style="query" type="xsd:string">
|
|
26 </request>
|
|
27 <sawadl:effect expression="confirmedOrder"/>
|
|
28 <response status="200" sawadl:modelReference="Ontology1#PurchaseOrderAck">
|
|
29 <representation mediaType="application/xml"
|
|
30 element="AcknowledgementofReceipt.xsd"/>
|
|
31 </response>
|
|
32 </method>
|
|
33 </resource>
|
|
34 </resources>
|
|
35
|
|
36 </application>
|