{"_id":"@anhquoc96/fastxml-soap","name":"@anhquoc96/fastxml-soap","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.2":{"name":"@anhquoc96/fastxml-soap","version":"0.1.2","license":"MIT","description":"SOAP 1.1 and SOAP 1.2 support for fastxml.","type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"types":"./dist/index.d.ts","main":"./dist/index.js","scripts":{"build":"tsc -p tsconfig.json","typecheck":"tsc -p tsconfig.json --noEmit"},"dependencies":{"@anhquoc96/fastxml":"^0.1.2"},"engines":{"node":">=18"},"gitHead":"321353c78b100ee364ac6ed20bf93dfd62f10664","_id":"@anhquoc96/fastxml-soap@0.1.2","_nodeVersion":"24.18.0","_npmVersion":"11.16.0","dist":{"integrity":"sha512-Y+NHb+XjT6EU45Q04lA9eTQppLYAEHVS0zQ3eYGo8eE/feQy+CfQJfg8dGgA9+2jPdxUPQ+1aZr9/cZBqE8z/A==","shasum":"376c02133cdb610a53dfad8e7f4e0b66b81a7a6d","tarball":"https://registry.npmjs.org/@anhquoc96/fastxml-soap/-/fastxml-soap-0.1.2.tgz","fileCount":43,"unpackedSize":27229,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCfPgWebXUT+P33tRKlvfd5efCQbi3ZJyIsb5i72zpgQAIgLsldCeZcMsF187hW8G+WJoHX3BwdvjZDhNvvcTV+9WM="}]},"_npmUser":{"name":"anhquoc96","email":"aquoc.hue@outlook.com"},"directories":{},"maintainers":[{"name":"anhquoc96","email":"aquoc.hue@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/fastxml-soap_0.1.2_1786959229848_0.24867503184812345"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-17T09:33:49.663Z","0.1.2":"2026-08-17T09:33:49.996Z","modified":"2026-08-17T09:33:50.215Z"},"maintainers":[{"name":"anhquoc96","email":"aquoc.hue@outlook.com"}],"description":"SOAP 1.1 and SOAP 1.2 support for fastxml.","license":"MIT","readme":"# @anhquoc96/fastxml-soap\n\nSOAP 1.1 and SOAP 1.2 parsing and construction helpers for `fastxml`.\n\nThis package validates SOAP envelope structure while leaving application\npayloads as normal namespace-aware `fastxml` elements.\n\n## Installation\n\n```bash\nnpm install @anhquoc96/fastxml-soap @anhquoc96/fastxml\n```\n\n## Parse a SOAP message\n\n```ts\nimport { parseSoap } from \"@anhquoc96/fastxml-soap\";\n\nconst message = parseSoap(xmlText);\n\nconsole.log(message.version);       // \"1.1\" or \"1.2\"\nconsole.log(message.header);        // Header element or null\nconsole.log(message.body);          // Body element\nconsole.log(message.fault?.reason); // Fault reason or null\n```\n\nStream and URL inputs are supported:\n\n```ts\nimport { parseSoap, parseSoapUrl } from \"@anhquoc96/fastxml-soap\";\n\nconst streamed = await parseSoap(response.body!);\nconst remote = await parseSoapUrl(\"https://example.com/service\");\n```\n\nThe parser checks the SOAP namespace, exactly one Body, at most one Header, and\nHeader-before-Body ordering. SOAP Fault code, reason, and detail are exposed by\n`message.fault`.\n\n## Create an envelope\n\n```ts\nimport { el } from \"@anhquoc96/fastxml\";\nimport { createSoapEnvelope } from \"@anhquoc96/fastxml-soap\";\n\nconst document = createSoapEnvelope(\"1.2\", [\n  el(\"m:GetStatus\", { \"xmlns:m\": \"urn:example:service\" }),\n]);\n\nconsole.log(document.toString());\n```\n\nCreate a fault element with `createSoapFault(version, code, reason)` and append\nit to a SOAP Body when building an error response.\n\n## Supported standards and boundaries\n\n- SOAP 1.1 envelope namespace and Fault shape.\n- SOAP 1.2 envelope namespace and Fault shape.\n- Header, Body, Envelope, and application payload validation.\n\nWS-Addressing, WS-ReliableMessaging, full WS-Security message serialization,\nand transport-specific policies are separate integration layers.\n\n## Development\n\n```bash\nnpm run build --workspace @anhquoc96/fastxml-soap\nnpm run typecheck --workspace @anhquoc96/fastxml-soap\n```\n\n## License\n\nMIT License. See the package `LICENSE` file.\n","readmeFilename":"README.md","_rev":"1-1524bcbee134ffd6b5c555c88b080b83"}