-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathDPR-Tutorial1Step6.ol
132 lines (103 loc) · 3.42 KB
/
DPR-Tutorial1Step6.ol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
// API name: OnlineShopBackend
type Order {
anonymous11: void { orderNumber: string /* data type role: D */ orderId: OrderId orderitemList[0,*]: OrderItem }
}
type CustomerAccountId {
anonymous10: void { customeraccountId: long /* data type role: D */ }
}
type OrderItem {
anonymous13: void { productName: string /* data type role: D */ price: string /* data type role: D */ orderitemId: OrderItemId }
}
type Product {
anonymous15: void { productName: string /* data type role: D */ image: string /* data type role: D */ productCategory: string /* data type role: D */ productId: ProductId }
}
type CustomerAccount {
anonymous9: void { name: string /* data type role: D */ address: string /* data type role: D */ customeraccountId: CustomerAccountId }
}
type ProductId {
anonymous16: void { productId: long /* data type role: D */ }
}
type OrderId {
anonymous12: void { orderId: long /* data type role: D */ }
}
type OrderItemId {
anonymous14: void { orderitemId: long /* data type role: D */ }
}
// operation responsibility: POST
type createOrderRequestDTO {
anonymous5: Order
}
type createOrderResponseDTO {
anonymous6: OrderId
}
// operation responsibility: undefined
type createAccountRequestDTO {
anonymous1: CustomerAccount
}
type createAccountResponseDTO {
anonymous2: CustomerAccountId
}
// operation responsibility: PUT
type addOrderItemRequestDTO {
anonymous7: OrderItem
}
type addOrderItemResponseDTO {
anonymous8: OrderItemId
}
// operation responsibility: undefined
type readProductInformationRequestDTO {
anonymous3[0,*]: ProductId
}
type readProductInformationResponseDTO {
anonymous4[0,*]: Product
}
type SOAPFaultMessage {
code: int
text: string
actor: string
details: string
}
// interface/endpoint role: undefined
interface Customer {
RequestResponse:
createAccount( createAccountRequestDTO )( createAccountResponseDTO ),
}
// interface/endpoint role: undefined
interface ProductCatalog {
RequestResponse:
readProductInformation( readProductInformationRequestDTO )( readProductInformationResponseDTO ),
}
// interface/endpoint role: undefined
interface OrderBasket {
RequestResponse:
createOrder( createOrderRequestDTO )( createOrderResponseDTO ),
addOrderItem( addOrderItemRequestDTO )( addOrderItemResponseDTO ),
}
inputPort CustomerPort {
location: "socket://localhost:8080"
protocol: soap
interfaces: Customer
}
// sample conversion to WSDL/SOAP:
// jolie2wsdl --namespace "http://tbc.org" --portName CustomerPort --portAddr "localhost:8080" --outputFile DPR-Tutorial1Step6Customer.wsdl DPR-Tutorial1Step6.ol
// The WSDL could be viewed/analyzed at: https://www.wsdl-analyzer.com/upload
inputPort ProductCatalogPort {
location: "socket://localhost:8080"
protocol: soap
interfaces: ProductCatalog
}
// sample conversion to WSDL/SOAP:
// jolie2wsdl --namespace "http://tbc.org" --portName ProductCatalogPort --portAddr "localhost:8080" --outputFile DPR-Tutorial1Step6ProductCatalog.wsdl DPR-Tutorial1Step6.ol
// The WSDL could be viewed/analyzed at: https://www.wsdl-analyzer.com/upload
inputPort OrderBasketPort {
location: "socket://localhost:8080"
protocol: soap
interfaces: OrderBasket
}
// sample conversion to WSDL/SOAP:
// jolie2wsdl --namespace "http://tbc.org" --portName OrderBasketPort --portAddr "localhost:8080" --outputFile DPR-Tutorial1Step6OrderBasket.wsdl DPR-Tutorial1Step6.ol
// The WSDL could be viewed/analyzed at: https://www.wsdl-analyzer.com/upload
main
{
nullProcess
}