@@ -195,10 +195,10 @@ To build the actual XML payload you have to use `wrap-body` function from the se
195
195
```clojure
196
196
(require '[paos.service :as service])
197
197
198
- (let [srv (get-in soap-service [" SomeServiceBinding" " operation1" ]
199
- mapping (service/request-mapping srv)
200
- context (do-something-with-mapping mapping)]
201
- (service/wrap-body srv context))
198
+ (let [srv (get-in soap-service [" SomeServiceBinding" :operations " operation1" ])
199
+ mapping (service/request-mapping srv)
200
+ context (do-something-with-mapping mapping)]
201
+ (service/wrap-body srv context))
202
202
; ; => "<xml>...</xml>"
203
203
```
204
204
@@ -211,15 +211,16 @@ Now you can use your favorite http library to make the request to the service:
211
211
(require '[paos.service :as service])
212
212
213
213
(let [soap-url (:url soap-service)
214
- srv (get-in soap-service [" SomeServiceBinding" " operation1" ]
215
- soap-headers (service/soap-headers srv)
216
- content-type (service/content-type srv)
217
- mapping (service/request-mapping srv)
218
- context (do-something-with-mapping mapping)
219
- body (service/wrap-body srv context)]
220
- (client/post soap-url {:content-type content-type
221
- :headers soap-headers
222
- :body body}))
214
+ srv (get-in soap-service [" SomeServiceBinding" :operations " operation1" ])
215
+ soap-headers (service/soap-headers srv)
216
+ content-type (service/content-type srv)
217
+ mapping (service/request-mapping srv)
218
+ context (do-something-with-mapping mapping)
219
+ body (service/wrap-body srv context)]
220
+ (client/post soap-url
221
+ {:content-type content-type
222
+ :headers soap-headers
223
+ :body body}))
223
224
; ; => {:status 200
224
225
; ; :body "<xml>...</xml>"
225
226
; ; ...}
0 commit comments