You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .nsprc
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -10,5 +10,21 @@
10
10
"GHSA-6rw7-vpxm-498p": {
11
11
"active": true,
12
12
"notes": "qs vulnerability in request (via co-request). This is a transitive dependency. The deprecated 'request' library is used by co-request. Waiting on upstream libraries to upgrade."
13
+
},
14
+
"GHSA-43fc-jf86-j433": {
15
+
"active": true,
16
+
"notes": "Axios is Vulnerable to Denial of Service via __proto__ Key in mergeConfig. This is a transitive dependency. Waiting on upstream libraries to upgrade."
17
+
},
18
+
"GHSA-3ppc-4f35-3m26": {
19
+
"active": true,
20
+
"notes": "minimatch ReDoS via repeated wildcards. minimatch is only used with static, developer-defined glob patterns in this project; no user input is passed as patterns. Waiting on upstream libraries to upgrade."
21
+
},
22
+
"GHSA-7r86-cg39-jmmj": {
23
+
"active": true,
24
+
"notes": "minimatch ReDoS via multiple non-adjacent GLOBSTAR segments. minimatch is only used with static, developer-defined glob patterns in this project; no user input is passed as patterns. Waiting on upstream libraries to upgrade."
25
+
},
26
+
"GHSA-23c5-xmqv-rm74": {
27
+
"active": true,
28
+
"notes": "minimatch ReDoS via nested extglobs. minimatch is only used with static, developer-defined glob patterns in this project; no user input is passed as patterns. Waiting on upstream libraries to upgrade."
Copy file name to clipboardExpand all lines: README.md
+37Lines changed: 37 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,7 @@ Built-in Node.js global objects are also supported.
34
34
### Other Libraries/functions
35
35
-`wait(numberOfMilliscondsToSleep)` - Utility function for sleeping
36
36
-[`request`](https://github.com/request/request) - Http Client (wrapped in `co` - [this library](https://www.npmjs.com/package/co-request) so that it is pre-promisified)
37
+
-[`strong-soap`](https://github.com/loopbackio/strong-soap) - SOAP client for invoking web services
37
38
-`_` - [Lodash](https://lodash.com/)
38
39
39
40
## Code component usage Examples
@@ -91,6 +92,42 @@ async function run(msg, cfg, snapshot) {
91
92
}
92
93
```
93
94
95
+
### Calling a SOAP web service with strong-soap
96
+
97
+
The Code component exposes the [`strong-soap`](https://github.com/loopbackio/strong-soap) client as `soap`. You can call SOAP operations using async/await. Create the client with a small promise wrapper, then invoke methods (they return promises).
98
+
99
+
**Basic SOAP call (WSDL URL and operation args from incoming message):**
const { result } =await client[operation](args || {});
115
+
awaitthis.emit('data', { body: result });
116
+
}
117
+
```
118
+
119
+
**Calling a specific service and port:**
120
+
121
+
If the WSDL defines multiple services or ports, use the `ServiceName.PortName.MethodName` form (use the same `createSoapClient` helper as in the examples above):
0 commit comments