xml-toolkit 1.0.50 → 1.0.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/SOAP11.js +9 -1
- package/package.json +1 -1
package/lib/SOAP11.js
CHANGED
|
@@ -103,6 +103,14 @@ const SOAP11 = class {
|
|
|
103
103
|
|
|
104
104
|
return so.attributes.get ('soapAction')
|
|
105
105
|
|
|
106
|
+
for (const d of this.definitions) for (const p of d.children) if (p.localName === 'portType')
|
|
107
|
+
|
|
108
|
+
for (const o of p.children) if (o.attributes.get ('name') === operationName)
|
|
109
|
+
|
|
110
|
+
for (const i of o.children) if (i.localName === 'input')
|
|
111
|
+
|
|
112
|
+
return i.attributes.get ('Action', 'http://www.w3.org/2006/05/addressing/wsdl')
|
|
113
|
+
|
|
106
114
|
}
|
|
107
115
|
|
|
108
116
|
|
|
@@ -128,7 +136,7 @@ const SOAP11 = class {
|
|
|
128
136
|
|
|
129
137
|
let headers = {'Content-Type': _contentType + '; charset=' + encoding.toLowerCase ()}
|
|
130
138
|
|
|
131
|
-
for (const elementLocalName in body [0]) headers.SOAPAction = this.getSoapActionByElementLocalName (elementLocalName)
|
|
139
|
+
for (const elementLocalName in body [0]) headers.SOAPAction = this.getSoapActionByElementLocalName (elementLocalName) ?? ''
|
|
132
140
|
|
|
133
141
|
body [0] = this.xs.stringify (body [0])
|
|
134
142
|
|