@omnigraph/soap 0.105.12-alpha-20250115141639-803e3526c125de5895ee472922b8197b0a6d19ce → 0.105.12-alpha-20250116175218-0f16a1071472b8f2a18b2d2532b62361d79faf28

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 CHANGED
@@ -47,6 +47,9 @@ const soapDirective = new graphql_1.GraphQLDirective({
47
47
  soapHeaders: {
48
48
  type: SOAPHeadersInput,
49
49
  },
50
+ soapAction: {
51
+ type: graphql_1.GraphQLString,
52
+ },
50
53
  },
51
54
  });
52
55
  const QUERY_PREFIXES = [
@@ -352,11 +355,23 @@ class SOAPLoader {
352
355
  throw new Error(`Namespace alias: ${messageNamespaceAlias} is undefined!`);
353
356
  }
354
357
  const { type, elementName } = this.getOutputTypeForMessage(this.getNamespaceMessageMap(messageNamespace).get(messageName));
358
+ const bindingOperationObject = bindingObj.operation.find(operation => operation.attributes.name === operationName);
359
+ let soapAction;
360
+ const bindingOperationObjectAttributes = bindingOperationObject?.operation?.[0].attributes;
361
+ if (bindingOperationObjectAttributes) {
362
+ for (const attributeName in bindingOperationObjectAttributes) {
363
+ if (attributeName.toLowerCase().endsWith('action')) {
364
+ soapAction = bindingOperationObjectAttributes[attributeName];
365
+ break;
366
+ }
367
+ }
368
+ }
355
369
  const soapAnnotations = {
356
370
  elementName,
357
371
  bindingNamespace,
358
372
  endpoint: this.endpoint || portObj.address[0].attributes.location,
359
373
  subgraph: this.subgraphName,
374
+ soapAction,
360
375
  };
361
376
  if (this.bodyAlias) {
362
377
  soapAnnotations.bodyAlias = this.bodyAlias;
package/esm/SOAPLoader.js CHANGED
@@ -44,6 +44,9 @@ const soapDirective = new GraphQLDirective({
44
44
  soapHeaders: {
45
45
  type: SOAPHeadersInput,
46
46
  },
47
+ soapAction: {
48
+ type: GraphQLString,
49
+ },
47
50
  },
48
51
  });
49
52
  const QUERY_PREFIXES = [
@@ -349,11 +352,23 @@ export class SOAPLoader {
349
352
  throw new Error(`Namespace alias: ${messageNamespaceAlias} is undefined!`);
350
353
  }
351
354
  const { type, elementName } = this.getOutputTypeForMessage(this.getNamespaceMessageMap(messageNamespace).get(messageName));
355
+ const bindingOperationObject = bindingObj.operation.find(operation => operation.attributes.name === operationName);
356
+ let soapAction;
357
+ const bindingOperationObjectAttributes = bindingOperationObject?.operation?.[0].attributes;
358
+ if (bindingOperationObjectAttributes) {
359
+ for (const attributeName in bindingOperationObjectAttributes) {
360
+ if (attributeName.toLowerCase().endsWith('action')) {
361
+ soapAction = bindingOperationObjectAttributes[attributeName];
362
+ break;
363
+ }
364
+ }
365
+ }
352
366
  const soapAnnotations = {
353
367
  elementName,
354
368
  bindingNamespace,
355
369
  endpoint: this.endpoint || portObj.address[0].attributes.location,
356
370
  subgraph: this.subgraphName,
371
+ soapAction,
357
372
  };
358
373
  if (this.bodyAlias) {
359
374
  soapAnnotations.bodyAlias = this.bodyAlias;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omnigraph/soap",
3
- "version": "0.105.12-alpha-20250115141639-803e3526c125de5895ee472922b8197b0a6d19ce",
3
+ "version": "0.105.12-alpha-20250116175218-0f16a1071472b8f2a18b2d2532b62361d79faf28",
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-20250115141639-803e3526c125de5895ee472922b8197b0a6d19ce",
13
- "@graphql-mesh/types": "0.103.12-alpha-20250115141639-803e3526c125de5895ee472922b8197b0a6d19ce",
14
- "@graphql-mesh/utils": "0.103.12-alpha-20250115141639-803e3526c125de5895ee472922b8197b0a6d19ce",
12
+ "@graphql-mesh/transport-soap": "0.8.12-alpha-20250116175218-0f16a1071472b8f2a18b2d2532b62361d79faf28",
13
+ "@graphql-mesh/types": "^0.103.11",
14
+ "@graphql-mesh/utils": "^0.103.11",
15
15
  "@graphql-tools/utils": "^10.6.0",
16
16
  "@whatwg-node/fetch": "^0.10.0",
17
17
  "fast-xml-parser": "^4.5.0",
@@ -5,6 +5,7 @@ export interface SoapAnnotations {
5
5
  bindingNamespace: string;
6
6
  endpoint: string;
7
7
  bodyAlias?: string;
8
+ soapAction?: string;
8
9
  soapHeaders?: {
9
10
  alias?: string;
10
11
  namespace: string;
@@ -5,6 +5,7 @@ export interface SoapAnnotations {
5
5
  bindingNamespace: string;
6
6
  endpoint: string;
7
7
  bodyAlias?: string;
8
+ soapAction?: string;
8
9
  soapHeaders?: {
9
10
  alias?: string;
10
11
  namespace: string;