{"id":17230089,"url":"https://github.com/robinbuschmann/express-soap","last_synced_at":"2025-04-14T02:31:40.066Z","repository":{"id":40063927,"uuid":"81317687","full_name":"RobinBuschmann/express-soap","owner":"RobinBuschmann","description":"Express middleware based upon node-soap","archived":false,"fork":false,"pushed_at":"2024-03-11T19:18:41.000Z","size":182,"stargazers_count":12,"open_issues_count":3,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T01:40:15.399Z","etag":null,"topics":["express-middleware","soap"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RobinBuschmann.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-08T10:28:16.000Z","updated_at":"2024-04-13T09:08:51.000Z","dependencies_parsed_at":"2024-06-18T21:27:18.430Z","dependency_job_id":"25eeba41-532a-4227-adf8-d4ea7803ad9e","html_url":"https://github.com/RobinBuschmann/express-soap","commit_stats":{"total_commits":18,"total_committers":4,"mean_commits":4.5,"dds":0.5555555555555556,"last_synced_commit":"1b8b62203b3258b1fb0584be511887fd841c37d5"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobinBuschmann%2Fexpress-soap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobinBuschmann%2Fexpress-soap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobinBuschmann%2Fexpress-soap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobinBuschmann%2Fexpress-soap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RobinBuschmann","download_url":"https://codeload.github.com/RobinBuschmann/express-soap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248810883,"owners_count":21165195,"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":["express-middleware","soap"],"created_at":"2024-10-15T04:52:25.135Z","updated_at":"2025-04-14T02:31:39.612Z","avatar_url":"https://github.com/RobinBuschmann.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/RobinBuschmann/express-soap.png?branch=master)](https://travis-ci.org/RobinBuschmann/express-soap)\n\n# express-soap\nAn express middleware based upon [node-soap](https://github.com/vpulim/node-soap).\n\n## Installation\n```\nnpm install express-soap --save\n```\n\n## Usage\nAll node-soap options are valid and can be passed. See [node-soap](https://github.com/vpulim/node-soap#options-1) for documentation.\n```javascript\nimport {soap} from 'express-soap';\n\nconst app = express();\n\napp.use('/soap/calculation', soap({\n    services: {\n        CalculatorService: {\n            Calculator: {\n                Add({a, b}, res) {\n                    res({\n                        result: a + b\n                    });\n                },\n                Subtract({a, b}, res) {\n                    res({\n                        result: a - b\n                    });\n                }\n              }\n        }\n    }, \n    wsdl: `...` // or xml (both options are valid)\n}));\n\napp.use('/soap/meta', soap({\n    services: {\n        MetaService: {\n            /* ... */\n        }\n    }, \n    wsdl: `...` // or xml (both options are valid)\n}));\n```\n\n## Why?\nThe current way of how to implement a soap server in express with `node-soap` is really inconvenient\n([see](https://github.com/vpulim/node-soap#soaplistenserver-path-services-wsdl---create-a-new-soap-server-that-listens-on-path-and-provides-services)).\n`express-soap` simplifies this by providing a middleware instead. Since the order of express \nrequest handlers and middlewares matters the original node-soap approach is problematic as well.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobinbuschmann%2Fexpress-soap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobinbuschmann%2Fexpress-soap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobinbuschmann%2Fexpress-soap/lists"}