@robinpath/soap
v0.1.1
Published
SOAP web service client, XML-RPC support, WSDL parsing, and envelope building
Downloads
153
Readme
@robinpath/soap
SOAP web service client, XML-RPC support, WSDL parsing, and envelope building
Why use this module?
The soap module lets you:
- Call a SOAP web service
- Build SOAP XML envelope
- Parse SOAP XML response
- Call XML-RPC service
- Build XML-RPC request
All functions are callable directly from RobinPath scripts with a simple, consistent API.
Installation
npm install @robinpath/soapQuick Start
No credentials needed — start using it right away:
soap.buildEnvelope "GetUser" {"id": 1}Available Functions
| Function | Description |
|----------|-------------|
| soap.call | Call a SOAP web service |
| soap.buildEnvelope | Build SOAP XML envelope |
| soap.parseEnvelope | Parse SOAP XML response |
| soap.xmlRpc | Call XML-RPC service |
| soap.buildXmlRpc | Build XML-RPC request |
| soap.parseXmlRpc | Parse XML-RPC response |
| soap.wsdl | Fetch and parse WSDL |
| soap.fault | Create SOAP fault XML |
| soap.getFault | Extract fault from SOAP XML |
Examples
Build SOAP XML envelope
soap.buildEnvelope "GetUser" {"id": 1}Parse SOAP XML response
soap.parseEnvelope $xmlCall XML-RPC service
soap.xmlRpc "http://example.com/rpc" "system.listMethods" []Integration with RobinPath
import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/soap";
const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);
const result = await rp.executeScript(`
soap.buildEnvelope "GetUser" {"id": 1}
`);Full API Reference
See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.
Related Modules
@robinpath/json— JSON module for complementary functionality
License
MIT
