@omnigraph/soap 0.105.12-alpha-20250116180618-2a5ff51155fc0507e766d2eccb6664640623fa85 → 0.105.12-alpha-20250117111022-41cb57e51d721fa0c43fb3af2cbc7d7124178c93
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 +1 -31
- package/esm/SOAPLoader.js +1 -31
- package/package.json +4 -4
- package/typings/utils.d.cts +0 -1
- package/typings/utils.d.ts +0 -1
package/cjs/SOAPLoader.js
CHANGED
|
@@ -47,9 +47,6 @@ const soapDirective = new graphql_1.GraphQLDirective({
|
|
|
47
47
|
soapHeaders: {
|
|
48
48
|
type: SOAPHeadersInput,
|
|
49
49
|
},
|
|
50
|
-
soapAction: {
|
|
51
|
-
type: graphql_1.GraphQLString,
|
|
52
|
-
},
|
|
53
50
|
},
|
|
54
51
|
});
|
|
55
52
|
const QUERY_PREFIXES = [
|
|
@@ -355,39 +352,12 @@ class SOAPLoader {
|
|
|
355
352
|
throw new Error(`Namespace alias: ${messageNamespaceAlias} is undefined!`);
|
|
356
353
|
}
|
|
357
354
|
const { type, elementName } = this.getOutputTypeForMessage(this.getNamespaceMessageMap(messageNamespace).get(messageName));
|
|
358
|
-
const bindingOperationObject = bindingObj.operation.find(operation => operation.attributes.name === operationName);
|
|
359
355
|
const soapAnnotations = {
|
|
360
356
|
elementName,
|
|
361
357
|
bindingNamespace,
|
|
362
|
-
endpoint: this.endpoint,
|
|
358
|
+
endpoint: this.endpoint || portObj.address[0].attributes.location,
|
|
363
359
|
subgraph: this.subgraphName,
|
|
364
360
|
};
|
|
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
|
-
}
|
|
391
361
|
if (this.bodyAlias) {
|
|
392
362
|
soapAnnotations.bodyAlias = this.bodyAlias;
|
|
393
363
|
}
|
package/esm/SOAPLoader.js
CHANGED
|
@@ -44,9 +44,6 @@ const soapDirective = new GraphQLDirective({
|
|
|
44
44
|
soapHeaders: {
|
|
45
45
|
type: SOAPHeadersInput,
|
|
46
46
|
},
|
|
47
|
-
soapAction: {
|
|
48
|
-
type: GraphQLString,
|
|
49
|
-
},
|
|
50
47
|
},
|
|
51
48
|
});
|
|
52
49
|
const QUERY_PREFIXES = [
|
|
@@ -352,39 +349,12 @@ export class SOAPLoader {
|
|
|
352
349
|
throw new Error(`Namespace alias: ${messageNamespaceAlias} is undefined!`);
|
|
353
350
|
}
|
|
354
351
|
const { type, elementName } = this.getOutputTypeForMessage(this.getNamespaceMessageMap(messageNamespace).get(messageName));
|
|
355
|
-
const bindingOperationObject = bindingObj.operation.find(operation => operation.attributes.name === operationName);
|
|
356
352
|
const soapAnnotations = {
|
|
357
353
|
elementName,
|
|
358
354
|
bindingNamespace,
|
|
359
|
-
endpoint: this.endpoint,
|
|
355
|
+
endpoint: this.endpoint || portObj.address[0].attributes.location,
|
|
360
356
|
subgraph: this.subgraphName,
|
|
361
357
|
};
|
|
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
|
-
}
|
|
388
358
|
if (this.bodyAlias) {
|
|
389
359
|
soapAnnotations.bodyAlias = this.bodyAlias;
|
|
390
360
|
}
|
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-20250117111022-41cb57e51d721fa0c43fb3af2cbc7d7124178c93",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"graphql": "*"
|
|
@@ -9,9 +9,9 @@
|
|
|
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-
|
|
13
|
-
"@graphql-mesh/types": "
|
|
14
|
-
"@graphql-mesh/utils": "
|
|
12
|
+
"@graphql-mesh/transport-soap": "0.8.12-alpha-20250117111022-41cb57e51d721fa0c43fb3af2cbc7d7124178c93",
|
|
13
|
+
"@graphql-mesh/types": "0.103.12-alpha-20250117111022-41cb57e51d721fa0c43fb3af2cbc7d7124178c93",
|
|
14
|
+
"@graphql-mesh/utils": "0.103.12-alpha-20250117111022-41cb57e51d721fa0c43fb3af2cbc7d7124178c93",
|
|
15
15
|
"@graphql-tools/utils": "^10.6.0",
|
|
16
16
|
"@whatwg-node/fetch": "^0.10.0",
|
|
17
17
|
"fast-xml-parser": "^4.5.0",
|
package/typings/utils.d.cts
CHANGED