Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Commit 3ac7d10

Browse files
committed
Small fixes for README [ci skip]
1 parent 5e3a4d1 commit 3ac7d10

File tree

2 files changed

+20
-13
lines changed

2 files changed

+20
-13
lines changed

CONTRIBUTING.md

+6
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,9 @@ Please file bug reports and feature requests to https://github.com/xapix-io/paos
2424
- "Add x", "Fix y", "Support z", "Remove x"
2525
6. Wrap the body at 72 characters
2626
7. Use the body to explain what and why vs. how
27+
28+
## Contributors
29+
30+
* [@DG4227](https://github.com/DG4227)
31+
* [@zarkone](https://github.com/zarkone)
32+
* [@daemianmack](https://github.com/daemianmack)

README.md

+14-13
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,10 @@ To build the actual XML payload you have to use `wrap-body` function from the se
195195
```clojure
196196
(require '[paos.service :as service])
197197

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))
202202
;; => "<xml>...</xml>"
203203
```
204204

@@ -211,15 +211,16 @@ Now you can use your favorite http library to make the request to the service:
211211
(require '[paos.service :as service])
212212

213213
(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}))
223224
;; => {:status 200
224225
;; :body "<xml>...</xml>"
225226
;; ...}

0 commit comments

Comments
 (0)