@omnigraph/soap 0.105.12-alpha-20250116174026-d861db883657670c4d0db836a9082ea200facdbd → 0.105.12-alpha-20250116180044-4dc229baab0ab5d5a2a4de35a79720ca865641fd
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/cjs/SOAPLoader.js +27 -2
- package/esm/SOAPLoader.js +27 -2
- package/package.json +2 -2
package/cjs/SOAPLoader.js
CHANGED
|
@@ -359,10 +359,35 @@ class SOAPLoader {
|
|
|
359
359
|
const soapAnnotations = {
|
|
360
360
|
elementName,
|
|
361
361
|
bindingNamespace,
|
|
362
|
-
endpoint: this.endpoint
|
|
362
|
+
endpoint: this.endpoint,
|
|
363
363
|
subgraph: this.subgraphName,
|
|
364
|
-
soapAction: bindingOperationObject?.operation?.[0].attributes.soapAction,
|
|
365
364
|
};
|
|
365
|
+
if (!soapAnnotations.endpoint && portObj.address) {
|
|
366
|
+
for (const address of portObj.address) {
|
|
367
|
+
if (address.attributes) {
|
|
368
|
+
for (const attributeName in address.attributes) {
|
|
369
|
+
const value = address.attributes[attributeName];
|
|
370
|
+
if (value && attributeName.toLowerCase().endsWith('location')) {
|
|
371
|
+
soapAnnotations.endpoint = value;
|
|
372
|
+
break;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
if (bindingOperationObject?.operation) {
|
|
379
|
+
for (const bindingOperationObjectElem of bindingOperationObject.operation) {
|
|
380
|
+
if (bindingOperationObjectElem.attributes) {
|
|
381
|
+
for (const attributeName in bindingOperationObjectElem.attributes) {
|
|
382
|
+
const value = bindingOperationObjectElem.attributes[attributeName];
|
|
383
|
+
if (value && attributeName.toLowerCase().endsWith('action')) {
|
|
384
|
+
soapAnnotations.soapAction = value;
|
|
385
|
+
break;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
}
|
|
366
391
|
if (this.bodyAlias) {
|
|
367
392
|
soapAnnotations.bodyAlias = this.bodyAlias;
|
|
368
393
|
}
|
package/esm/SOAPLoader.js
CHANGED
|
@@ -356,10 +356,35 @@ export class SOAPLoader {
|
|
|
356
356
|
const soapAnnotations = {
|
|
357
357
|
elementName,
|
|
358
358
|
bindingNamespace,
|
|
359
|
-
endpoint: this.endpoint
|
|
359
|
+
endpoint: this.endpoint,
|
|
360
360
|
subgraph: this.subgraphName,
|
|
361
|
-
soapAction: bindingOperationObject?.operation?.[0].attributes.soapAction,
|
|
362
361
|
};
|
|
362
|
+
if (!soapAnnotations.endpoint && portObj.address) {
|
|
363
|
+
for (const address of portObj.address) {
|
|
364
|
+
if (address.attributes) {
|
|
365
|
+
for (const attributeName in address.attributes) {
|
|
366
|
+
const value = address.attributes[attributeName];
|
|
367
|
+
if (value && attributeName.toLowerCase().endsWith('location')) {
|
|
368
|
+
soapAnnotations.endpoint = value;
|
|
369
|
+
break;
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
if (bindingOperationObject?.operation) {
|
|
376
|
+
for (const bindingOperationObjectElem of bindingOperationObject.operation) {
|
|
377
|
+
if (bindingOperationObjectElem.attributes) {
|
|
378
|
+
for (const attributeName in bindingOperationObjectElem.attributes) {
|
|
379
|
+
const value = bindingOperationObjectElem.attributes[attributeName];
|
|
380
|
+
if (value && attributeName.toLowerCase().endsWith('action')) {
|
|
381
|
+
soapAnnotations.soapAction = value;
|
|
382
|
+
break;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
}
|
|
363
388
|
if (this.bodyAlias) {
|
|
364
389
|
soapAnnotations.bodyAlias = this.bodyAlias;
|
|
365
390
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omnigraph/soap",
|
|
3
|
-
"version": "0.105.12-alpha-
|
|
3
|
+
"version": "0.105.12-alpha-20250116180044-4dc229baab0ab5d5a2a4de35a79720ca865641fd",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"graphql": "*"
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"@graphql-mesh/cross-helpers": "^0.4.9",
|
|
10
10
|
"@graphql-mesh/string-interpolation": "^0.5.7",
|
|
11
11
|
"@graphql-mesh/transport-common": "^0.7.25",
|
|
12
|
-
"@graphql-mesh/transport-soap": "0.8.12-alpha-
|
|
12
|
+
"@graphql-mesh/transport-soap": "0.8.12-alpha-20250116180044-4dc229baab0ab5d5a2a4de35a79720ca865641fd",
|
|
13
13
|
"@graphql-mesh/types": "^0.103.11",
|
|
14
14
|
"@graphql-mesh/utils": "^0.103.11",
|
|
15
15
|
"@graphql-tools/utils": "^10.6.0",
|