@robinpath/soap
0.1.0PublicSOAP web service client, XML-RPC support, WSDL parsing, and envelope building
@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/soap
Quick 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 $xml
Call 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
Versions (1)
| Version | Tag | Published |
|---|---|---|
| 0.1.0 | latest | yesterday |
Related Modules
@robinpath/api
HTTP client for making requests to external APIs with profiles, auth, download/upload, and auto-JSON parsing
@robinpath/auth
API authentication helpers (Basic, Bearer, API key, HMAC) for RobinPath
@robinpath/browser
Headless browser automation with Puppeteer: launch browsers, navigate pages, interact with elements, take screenshots, generate PDFs, and scrape data
@robinpath/cookie
HTTP cookie parsing, serialization, signing/verification, Set-Cookie handling, and cookie jar management
$ robinpath install @robinpath/soap
