{"id":40171545,"url":"https://github.com/stubbies/soap-req-json","last_synced_at":"2026-01-19T17:06:45.665Z","repository":{"id":57364936,"uuid":"409731023","full_name":"stubbies/soap-req-json","owner":"stubbies","description":"Does a SOAP request and returns JSON string.","archived":false,"fork":false,"pushed_at":"2021-09-23T20:36:48.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-10T23:12:40.000Z","etag":null,"topics":["json","node","soap","soap-client"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stubbies.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":"2021-09-23T20:12:06.000Z","updated_at":"2021-09-26T07:31:44.000Z","dependencies_parsed_at":"2022-09-13T21:01:13.379Z","dependency_job_id":null,"html_url":"https://github.com/stubbies/soap-req-json","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stubbies/soap-req-json","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stubbies%2Fsoap-req-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stubbies%2Fsoap-req-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stubbies%2Fsoap-req-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stubbies%2Fsoap-req-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stubbies","download_url":"https://codeload.github.com/stubbies/soap-req-json/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stubbies%2Fsoap-req-json/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28577206,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T16:29:19.148Z","status":"ssl_error","status_checked_at":"2026-01-19T16:29:17.772Z","response_time":67,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["json","node","soap","soap-client"],"created_at":"2026-01-19T17:06:45.112Z","updated_at":"2026-01-19T17:06:45.660Z","avatar_url":"https://github.com/stubbies.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Soap Request To Json\n\nDoes a SOAP request and returns JSON string.\n\n# Usage\n\n## `Installation`\n\n```\nnpm install soap-req-json\n// or\nyarn add soap-req-json\n```\n\n## `Quick Start`\n\n```\nconst srj = require('soap-req-json');\n\n// SOAP Envelope\nconst envelope = `\n  \u003cSOAP-ENV:Envelope\n    xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\"\n    SOAP-ENV:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"/\u003e\n    \u003cSOAP-ENV:Header\u003e\n        \u003ct:Transaction :t=\"some-URI\" SOAP-ENV:mustUnderstand=\"1\"\u003e5\u003c/t:Transaction\u003e\n    \u003c/SOAP-ENV:Header\u003e\n  \u003c/SOAP-ENV:Envelope\u003e`;\n\n// URL\nconst url = 'https://electrocommerce.org/abc/service';\n\n// The SOAPAction HTTP Header Field\nconst SOAPAction = 'https://electrocommerce.org/abc#MyMessage';\n\nconst jsonString = await srj({ envelope, url, SOAPAction })\n```\n\n## `Options`\n\n| Option       | Type                                       | Required |\n|--------------|--------------------------------------------|----------|\n| `envelope`   | `string` SOAP Envelope                     | `true`   |\n| `url`        | `url`                                      | `true`   |\n| `SOAPAction` | `string` The SOAPAction HTTP Header Field. | `true`   |\n| `timeout`    | `number` Timeout request. Default `0`      | `false`  |\n\n\n## `Error messages`\n\n| Message           | Description                  |\n|-------------------|------------------------------|\n| `INVALID_URL`     | URL could not be parsed.     |\n| `REQUEST_TIMEOUT` | Request timeout.             |\n| `SERVER_ERROR`    | Server responded with error. |\n\n\n# Dependencies\n\n## `dependencies`\n\n| Package | Description                                                         |\n|---------|---------------------------------------------------------------------|\n| xml-js  | Convert XML text to Javascript object / JSON text (and vice versa). |\n\n\n## `devDependencies`\n\n| Package     | Description                                                          |\n|-------------|----------------------------------------------------------------------|\n| @types/node | This package contains type definitions for Node.js                   |\n| typescript  | JavaScript compiler/type checker that boosts JavaScript productivity |","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstubbies%2Fsoap-req-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstubbies%2Fsoap-req-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstubbies%2Fsoap-req-json/lists"}