{"id":22725337,"url":"https://github.com/ovotech/apollo-datasource-soap","last_synced_at":"2025-04-13T20:28:53.965Z","repository":{"id":35063142,"uuid":"168710694","full_name":"ovotech/apollo-datasource-soap","owner":"ovotech","description":"SOAPDataSource is responsible for fetching data using soap forApollo GraphQL client","archived":false,"fork":false,"pushed_at":"2023-07-11T21:44:31.000Z","size":877,"stargazers_count":3,"open_issues_count":23,"forks_count":1,"subscribers_count":25,"default_branch":"master","last_synced_at":"2024-12-05T16:09:40.497Z","etag":null,"topics":["boost-bit","boostpower"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ovotech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-01T14:37:38.000Z","updated_at":"2023-07-12T17:37:00.000Z","dependencies_parsed_at":"2023-01-15T13:15:31.316Z","dependency_job_id":null,"html_url":"https://github.com/ovotech/apollo-datasource-soap","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovotech%2Fapollo-datasource-soap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovotech%2Fapollo-datasource-soap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovotech%2Fapollo-datasource-soap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovotech%2Fapollo-datasource-soap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ovotech","download_url":"https://codeload.github.com/ovotech/apollo-datasource-soap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229089207,"owners_count":18018390,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["boost-bit","boostpower"],"created_at":"2024-12-10T16:09:21.897Z","updated_at":"2024-12-10T16:09:22.543Z","avatar_url":"https://github.com/ovotech.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Apollo SOAPDataSource\n\n[![CircleCI](https://circleci.com/gh/ovotech/apollo-datasource-soap.svg?style=svg)](https://circleci.com/gh/ovotech/apollo-datasource-soap)\n[![npm (scoped)](https://img.shields.io/npm/v/@ovotech/apollo-datasource-soap.svg)](https://www.npmjs.com/package/@ovotech/apollo-datasource-soap)\n\nSOAPDataSource is responsible for calling a soap client. Integrates with the cache, following the example of [Apollo Data Sources](https://www.apollographql.com/docs/apollo-server/features/data-sources.html).\n\n### Using\n\n```bash\nyarn add @ovotech/apollo-datasource-soap\n```\n\nThis module ships with TypeScript types.\n\n```ts\nimport { SOAPDataSource } from '@ovotech/apollo-datasource-soap';\nimport { createClientAsync } from 'soap';\n\nclass MySOAPDataSource extends SOAPDataSource {\n  async get() {\n    return await this.callSoapMethod('myFunc', { someArg: 'val' });\n  }\n\n  async getFull() {\n    return await this.callSoapServiceMethod('myService', 'myPort', 'myFunc', { someArg: 'val' });\n  }\n\n  async rawClientCall() {\n    const client = await this.getClient();\n    return await client.myFuncAsync({ something: 'other' });\n  }\n}\n\nconst client = await createClientAsync('...some.wsdl'));\nconst ds = new MySOAPDataSource(client);\n// or load client async\nconst ds = new MySOAPDataSource(() =\u003e createClientAsync('...some.wsdl')));\n```\n\n## Running the tests\n\n```bash\nyarn test\n```\n\n### Coding style (linting, etc) tests\n\nStyle is maintained with prettier and tslint\n\n```\nyarn lint\n```\n\n## Deployment\n\nTo deploy a new version, push to master and then create a new release. CircleCI will automatically build and deploy a the version to the npm registry.\n\n## Contributing\n\nHave a bug? File an issue with a simple example that reproduces this so we can take a look \u0026 confirm.\n\nWant to make a change? Submit a PR, explain why it's useful, and make sure you've updated the docs (this file) and the tests (see `test/S3DataSource.spec.ts`). You can run the tests with `SERVICES=s3 localstack start` and `yarn test`.\n\n## Responsible Team\n\n- Boost Internal Tools (BIT)\n\n## License\n\nThis project is licensed under Apache 2 - see the [LICENSE](LICENSE) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fovotech%2Fapollo-datasource-soap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fovotech%2Fapollo-datasource-soap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fovotech%2Fapollo-datasource-soap/lists"}